22 #ifndef TITANIC_PET_ROOMS_GLYPHS_H 23 #define TITANIC_PET_ROOMS_GLYPHS_H 25 #include "titanic/pet_control/pet_glyphs.h" 26 #include "titanic/game_location.h" 33 RGM_UNASSIGNED = 0, RGM_ASSIGNED_ROOM = 1, RGM_PREV_ASSIGNED_ROOM = 2
54 int getSelection(
const Point &topLeft,
const Point &pt);
124 void setMode(RoomGlyphMode mode) { _mode = mode; }
153 void saveGlyphs(
SimpleFile *file,
int indent);
168 bool hasFlags(uint flags)
const {
return findGlyphByFlags(flags) !=
nullptr; }
Definition: mouse_messages.h:150
Definition: text_control.h:35
void saveGlyph(SimpleFile *file, int indent) override
bool dragGlyph(const Point &topLeft, CMouseDragStartMsg *msg) override
bool isAssigned() const
Definition: pet_rooms_glyphs.h:134
uint getRoomFlags() const
Definition: pet_rooms_glyphs.h:114
bool isCurrentlyAssigned() const
Definition: pet_rooms_glyphs.h:139
virtual void loadFlags(SimpleFile *file, int val)
void draw2(CScreenManager *screenManager) override
Definition: pet_rooms_glyphs.h:77
void selectGlyph(const Point &topLeft, const Point &pt) override
Definition: simple_file.h:49
bool isHighlighted() const
void setFlag(uint val)
Definition: pet_rooms_glyphs.h:119
Definition: screen_manager.h:49
Definition: pet_rooms_glyphs.h:36
Definition: game_object.h:79
bool isPreviouslyAssigned() const
Definition: pet_rooms_glyphs.h:144
Definition: pet_glyphs.h:53
void getTooltip(CTextControl *text) override
void changeClass(PassengerClass newClassNum)
Definition: pet_rooms_glyphs.h:147
Definition: pet_glyphs.h:244
void setRoomFlags(uint flags)
Definition: pet_rooms_glyphs.h:109
void setMode(RoomGlyphMode mode)
Definition: pet_rooms_glyphs.h:124
bool hasFlags(uint flags) const
Definition: pet_rooms_glyphs.h:168
void drawAt(CScreenManager *screenManager, const Point &pt, bool isHighlighted) override
Definition: pet_control.h:45
bool setup(CPetControl *petControl, CPetGlyphs *owner) override