00001 #ifndef MESSAGE_BOX_COMPONENT_H 00002 #define MESSAGE_BOX_COMPONENT_H 00003 00013 #include "labelComponent.h" 00014 00015 00019 class MessageBoxComponent : public ComponentInterface { 00020 public: 00021 enum { OK_Button, OK_Cancel_Buttons }; 00022 MessageBoxComponent(void); 00023 ~MessageBoxComponent(void); 00024 bool draw(unsigned long ticks, const UserInput& ui); 00025 00026 void setLabel(LabelComponent* label, int type = OK_Button); 00027 void activate(void); 00028 00029 bool isDecided(void); 00030 int getSelectedIndex(void); 00031 }; 00032 00033 #endif /* !MESSAGE_BOX_COMPONENT_H */ 00034