![]() |
Dragonfly 2.2
A text-based game engine
|
A 2-d bounding box. More...
#include <Box.h>
Public Member Functions | |
Box (Position init_corner, int init_horizontal, int init_vertical) | |
Create a box with an upper-left corner, horiz and vert sizes. | |
Box () | |
Create a box with (0,0) for the corner, and 0 for horiz and vert. | |
Position | getCorner () |
void | setCorner (Position new_corner) |
int | getHorizontal () |
void | setHorizontal (int new_horizontal) |
int | getVertical () |
void | setVertical (int new_vertical) |
Protected Attributes | |
Position | corner |
Upper left corner of box. | |
int | horizontal |
Horizontal dimension. | |
int | vertical |
Vertical dimension. |
A 2-d bounding box.