ScummVM API documentation
Grim::PrimitiveObject Class Reference
Inheritance diagram for Grim::PrimitiveObject:
Grim::PoolObject< PrimitiveObject > Grim::PoolObjectBase

Public Types

enum  PrimType { RectangleType = 1, LineType = 2, PolygonType = 3, InvalidType = 4 }
 

Public Member Functions

void createRectangle (const Common::Point &p1, const Common::Point &p2, const Color &color, bool filled)
 
void createLine (const Common::Point &p1, const Common::Point &p2, const Color &color)
 
void createPolygon (const Common::Point &p1, const Common::Point &p2, const Common::Point &p3, const Common::Point &p4, const Color &color)
 
Common::Point getP1 () const
 
Common::Point getP2 () const
 
Common::Point getP3 () const
 
Common::Point getP4 () const
 
void setPos (int x, int y)
 
void setEndpoint (int x, int y)
 
void setColor (const Color &color)
 
Color getColor () const
 
PrimType getType () const
 
bool isFilled () const
 
void draw () const
 
void saveState (SaveGame *state) const
 
bool restoreState (SaveGame *state)
 
- Public Member Functions inherited from Grim::PoolObject< PrimitiveObject >
void setId (int id)
 
int getId () const override
 
int32 getTag () const override
 

Static Public Member Functions

static int32 getStaticTag ()
 
- Static Public Member Functions inherited from Grim::PoolObject< PrimitiveObject >
static PoolgetPool ()
 

Additional Inherited Members

- Static Protected Member Functions inherited from Grim::PoolObject< PrimitiveObject >
static void saveStaticState (SaveGame *state)
 
static void restoreStaticState (SaveGame *state)
 

The documentation for this class was generated from the following file: