25 Box(
Vector init_corner,
float init_horizontal,
float init_vertical);
53 bool operator!=(
const Box &other)
const;
int serialize(std::stringstream *p_ss) const
Serialize attributes to stream.
void setVertical(float new_vertical)
Set vertical size of box.
std::string toString() const
Return attributes as string.
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:19
void draw()
Draw box outline in pixels.
float m_vertical
Vertical dimension.
Definition: Box.h:21
float getHorizontal() const
Get horizontal size of box.
void setCorner(Vector new_corner)
Set upper left corner of box.
int deserialize(std::stringstream *p_ss)
Deserialize attributes from stream.
float m_horizontal
Horizontal dimension.
Definition: Box.h:20
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 two boxes.
An animation for a sprite.
Definition: Animation.h:15