123456789101112131415161718192021222324
#ifndef __MESSAGE_H__ #define __MESSAGE_H__ #include <SDL/SDL.h> #include <list> #include <string> class Message { public: Message(string text, bool unicode = true, bool stack = true); unsigned int getHeight(); void draw(unsigned int x, unsigned int y); static void drawMessageStack(); string text; Uint16 font; Uint16 hue; bool unicode; protected: Uint32 birth; static list<Message*> messageStack; }; #endif