ScummVM API documentation
Freescape::Area Class Reference

Public Member Functions

 Area (uint16 areaID, uint16 areaFlags, ObjectMap *objectsByID, ObjectMap *entrancesByID, bool isCastle)
 
ObjectobjectWithID (uint16 objectID)
 
ObjectentranceWithID (uint16 objectID)
 
Common::List< int > getEntranceIds ()
 
void changeObjectID (uint16 objectID, uint16 newObjectID)
 
ObjectArray getSensors ()
 
uint16 getAreaID ()
 
Common::Array< Object * > & getSortedObjects ()
 
uint16 getAreaFlags ()
 
uint8 getScale ()
 
void remapColor (int index, int color)
 
void unremapColor (int index)
 
void draw (Renderer *gfx, uint32 animationTicks, Math::Vector3d camera, Math::Vector3d direction, bool insideWait)
 
void drawGroup (Renderer *gfx, Group *group, bool runAnimation)
 
void show ()
 
ObjectcheckCollisionRay (const Math::Ray &ray, int raySize)
 
bool checkInSight (const Math::Ray &ray, float maxDistance)
 
Math::Vector3d separateFromWall (const Math::Vector3d &position)
 
ObjectArray checkCollisions (const Math::AABB &boundingBox)
 
bool checkIfPlayerWasCrushed (const Math::AABB &boundingBox)
 
Math::Vector3d resolveCollisions (Math::Vector3d const &lastPosition, Math::Vector3d const &newPosition, int playerHeight)
 
void addObjectFromArea (int16 id, Area *global)
 
void addGroupFromArea (int16 id, Area *global)
 
void addObject (Object *obj)
 
void addFloor ()
 
void addStructure (Area *global)
 
void removeObject (int16 id)
 
void resetArea ()
 
void resetAreaGroups ()
 
bool isOutside ()
 
bool hasActiveGroups ()
 
void saveObjects (Common::WriteStream *stream)
 
void loadObjects (Common::SeekableReadStream *stream, Area *global)
 

Public Attributes

Common::String _name
 
Common::Array< Common::String_conditionSources
 
Common::Array< FCLInstructionVector_conditions
 
Common::Point _gasPocketPosition
 
uint32 _gasPocketRadius
 
bool _isCastle
 
uint8 _scale
 
uint8 _skyColor
 
uint8 _groundColor
 
uint8 _usualBackgroundColor
 
uint8 _underFireBackgroundColor
 
uint8 _inkColor
 
uint8 _paperColor
 
uint8 _extraColor [4]
 
ColorReMap _colorRemaps
 
uint32 _lastTick
 

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