Rectangular hitbox for 2d entities.
More...
#include <hitbox.hpp>
|
| 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 |
|
Rectangular hitbox for 2d entities.
◆ Hitbox() [1/2]
DSC::Hitbox::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]
DSC::Hitbox::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 |
The documentation for this class was generated from the following file: