![]() |
Dragonfly 2.2
A text-based game engine
|
00001 /// 00002 /// A sprite frame 00003 /// 00004 00005 #ifndef __FRAME_H__ 00006 #define __FRAME_H__ 00007 00008 #include <string> 00009 00010 using namespace std; 00011 00012 class Frame { 00013 00014 protected: 00015 int width; ///< Width of frame 00016 int height; ///< Height of frame 00017 string frame_str; ///< All frame characters stored as a string. 00018 00019 public: 00020 /// Create an empty frame. 00021 ~Frame(); 00022 Frame(); 00023 00024 /// Create a frame of the indicated width and height with the string. 00025 Frame(int new_width, int new_height, string frame_str); 00026 int getWidth(); 00027 void setWidth(int new_width); 00028 int getHeight(); 00029 void setHeight(int new_height); 00030 string getString(); 00031 void setFrame(string new_frame_str); 00032 }; 00033 00034 #endif //__FRAME_H__