Hitbox definitions.
More...
#include "DSCEngine/sprites/obj_size.hpp"
Go to the source code of this file.
|
class DSC::Hitbox | DSC::__attribute__ ((packed)) |
|
| Hitbox () |
| creates an empty hitbox
|
|
| Hitbox (char left, char top, char width, char height) |
| creates a Hitbox instance More...
|
|
| Hitbox (DSC::ObjSize size) |
| creates hitbox component that fits an object size type More...
|
|
|
char | left |
|
char | top |
|
char | width |
|
char | height |
|
◆ Hitbox() [1/2]
__attribute__::Hitbox |
( |
char |
left, |
|
|
char |
top, |
|
|
char |
width, |
|
|
char |
height |
|
) |
| |
creates a Hitbox instance
- Parameters
-
left | hitbox left coordinate |
top | hitbox top coordinate |
width | hitbox width |
height | hitbox height |
◆ Hitbox() [2/2]
__attribute__::Hitbox |
( |
DSC::ObjSize |
size | ) |
|
creates hitbox component that fits an object size type
- Parameters
-
size | size of an object that may correspond to the hitbox |