22 #ifndef TITANIC_PET_ELEMENT_H 23 #define TITANIC_PET_ELEMENT_H 25 #include "titanic/support/simple_file.h" 26 #include "titanic/support/string.h" 27 #include "titanic/core/link_item.h" 28 #include "titanic/messages/mouse_messages.h" 32 enum PetElementMode { MODE_UNSELECTED = 0, MODE_SELECTED = 1, MODE_FOCUSED = 2 };
43 virtual ~CPetElement() {}
99 virtual void playMovie(uint startFrame, uint endFrame)
const;
126 virtual void changeMode(PetElementMode newMode) { _mode = newMode; }
128 void setMode(PetElementMode mode);
143 void translate(
int deltaX,
int deltaY) { _bounds.translate(deltaX, deltaY); }
void translate(int deltaX, int deltaY)
Definition: pet_element.h:143
void translate(const Point &delta)
Definition: pet_element.h:148
virtual bool contains2(const Point &pt) const
virtual bool MouseButtonUpMsg(const Point &pt)
Definition: screen_manager.h:49
Definition: game_object.h:79
virtual void reset(const CString &name, CPetControl *petControl, PetElementMode mode)
Definition: pet_element.h:54
virtual void setup(PetElementMode mode, const CString &name, CPetControl *petControl)
Definition: pet_element.h:48
virtual void draw(CScreenManager *screenManager, const Point &destPos)
Definition: pet_element.h:64
virtual CGameObject * getObject() const
Definition: pet_element.h:124
virtual void loadFrame(int frameNumber)
virtual bool hasActiveMovie() const
void setBounds(const Rect &r)
Definition: pet_element.h:138
virtual bool MouseButtonDownMsg(const Point &pt)
virtual Rect getBounds() const
int16 x
Definition: rect.h:46
void setSelected(bool flag)
virtual void playMovie(uint startFrame, uint endFrame) const
int16 y
Definition: rect.h:47
virtual bool MouseMoveMsg(const Point &pt)
virtual int getMovieFrame() const
virtual bool MouseDoubleClickMsg(const Point &pt) const
virtual void changeStatus(int newStatus) const
virtual void draw(CScreenManager *screenManager)
Definition: pet_element.h:59
Definition: pet_control.h:45