21 Box(
Vector init_corner,
float init_horizontal,
float init_vertical);
void setVertical(float new_vertical)
Set vertical size of box.
std::string toString() const
Return attributes as string.
bool operator!=(const Box &other) const
Compare boxes.
float getVertical() const
Get vertical size of box.
Vector getCorner() const
Get upper left corner of box.
Box(Vector init_corner, float init_horizontal, float init_vertical)
Create box with upper-left corner, horiz and vert sizes.
Vector m_corner
Upper left corner of box.
Definition: Box.h:15
void draw()
Draw box outline in pixels.
float m_vertical
Vertical dimension.
Definition: Box.h:17
float getHorizontal() const
Get horizontal size of box.
void setCorner(Vector new_corner)
Set upper left corner of box.
float m_horizontal
Horizontal dimension.
Definition: Box.h:16
void setHorizontal(float new_horizontal)
Set horizontal size of box.
Box()
Create box with (0,0) for corner, and 0 for horiz and vert.
bool operator==(const Box &other) const
Compare boxes.
An animation for a sprite.
Definition: Animation.h:15