Dragonfly  4.4
A text-based game engine
Public Member Functions | Private Attributes | List of all members
df::Frame Class Reference

Public Member Functions

 Frame ()
 Frame (int new_width, int new_height, std::string frame_str)
void setWidth (int new_width)
int getWidth () const
void setHeight (int new_height)
int getHeight () const
void setString (std::string new_frame_str)
std::string getString () const

Private Attributes

int m_width
int m_height
std::string m_frame_str

Constructor & Destructor Documentation

df::Frame::Frame ( )

Create empty frame.

df::Frame::Frame ( int  new_width,
int  new_height,
std::string  frame_str 

Create frame of indicated width and height with string.

Member Function Documentation

int df::Frame::getHeight ( ) const

Get height of frame.

std::string df::Frame::getString ( ) const

Get frame characters (stored as string).

int df::Frame::getWidth ( ) const

Get width of frame.

void df::Frame::setHeight ( int  new_height)

Set height of frame.

void df::Frame::setString ( std::string  new_frame_str)

Set frame characters (stored as string).

void df::Frame::setWidth ( int  new_width)

Set width of frame.

Member Data Documentation

std::string df::Frame::m_frame_str

All frame characters stored as string.

int df::Frame::m_height

Height of frame.

int df::Frame::m_width

Width of frame.