ScummVM API documentation
Freescape::GeometricObject Class Reference
Inheritance diagram for Freescape::GeometricObject:
Freescape::Object

Public Member Functions

 GeometricObject (ObjectType type, uint16 objectID, uint16 flags, const Math::Vector3d &origin, const Math::Vector3d &size, Common::Array< uint8 > *colours, Common::Array< uint8 > *ecolours, Common::Array< float > *ordinates, FCLInstructionVector conditionInstructions, Common::String conditionSource="")
 
void setOrigin (Math::Vector3d origin) override
 
void offsetOrigin (Math::Vector3d origin_)
 
void restoreOrdinates ()
 
Objectduplicate () override
 
void scale (int factor) override
 
void computeBoundingBox ()
 
bool collides (const Math::AABB &boundingBox)
 
void draw (Freescape::Renderer *gfx, float offset=0.0) override
 
bool isDrawable () override
 
bool isPlanar () override
 
bool isLineButNotStraight ()
 
- Public Member Functions inherited from Freescape::Object
virtual ObjectType getType ()
 
uint16 getObjectID ()
 
uint16 getObjectFlags ()
 
void setObjectFlags (uint32 flags_)
 
Math::Vector3d getOrigin ()
 
Math::Vector3d getSize ()
 
bool isInvisible ()
 
void makeInvisible ()
 
void makeVisible ()
 
bool isInitiallyInvisible ()
 
void makeInitiallyInvisible ()
 
void makeInitiallyVisible ()
 
bool isDestroyed ()
 
void destroy ()
 
void restore ()
 
void toggleVisibility ()
 

Static Public Member Functions

static int numberOfColoursForObjectOfType (ObjectType type)
 
static int numberOfOrdinatesForType (ObjectType type)
 
static bool isPyramid (ObjectType type)
 
static bool isPolygon (ObjectType type)
 

Public Attributes

bool _cyclingColors
 
Common::String _conditionSource
 
FCLInstructionVector _condition
 
- Public Attributes inherited from Freescape::Object
uint16 _flags
 
ObjectType _type
 
uint16 _objectID
 
Math::Vector3d _origin
 
Math::Vector3d _size
 
Math::Vector3d _rotation
 
Math::AABB _boundingBox
 
Object_partOfGroup = nullptr
 

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