laObject Class Reference

Base Class for Level Objects. More...

#include <laObject.h>

Inheritance diagram for laObject:
laLoadableObj aiController laNamedClass laCollectable laGateway laStateObject laFinal laActiveObject laMovingCreature laFightingCreature laMonster laPlayer

Public Member Functions

void setLevel (class laLevel *plvl)
void setSegment (class laSegment *pseg)
void setTS (laTileset *pTileset)
void setObject (unsigned nTSObject, class laElement *pTSObject)
laLevelgetLevelObject ()
laSegmentgetSegmentObject ()
laTilesetgetTS ()
laElementgetObject ()
unsigned getObjectIndex ()
unsigned nestedAdd (laObject *p)
void nestedRemove (unsigned ID, M_BOOL bFreeMem=M_TRUE)
laObjectnestedGet (unsigned ID)
virtual void load (class laFileParser *fp)
virtual void save (FILE *f)
virtual void create (laPoint3 pos)
virtual void respawn ()
void setOutline (laOutline o)
void setColor (laColor c)
void setLight (M_BOOL on)
virtual void drawGeometry (laRenderer *r, laPoint3 ptBasePos)
virtual void drawFx (laRenderer *r, laPoint3 ptBasePos)
virtual void drawInterface (laRenderer *r, laPoint3 ptBasePos)
virtual void animate (laTimer &t)
void setPosition (laPoint3 pos)
laPoint3 getPosition ()
laPivotgetPivot ()
laRect2 boundingRect ()
- Public Member Functions inherited from laNamedClass
virtual std::string name ()=0
 Abstract naming method.
virtual laNamedClassinstantiate ()=0
 Abstract instantiate method.

Public Attributes

fxMessages fxMessages

Protected Member Functions

void _set_style (laRenderer *r)
void _offset (laRenderer *r, laPoint3 ptBasePos)
void _rotation (laRenderer *r)
void _offset_and_rotation (laRenderer *r, laPoint3 ptBasePos)
void _draw_shadow_fx (laRenderer *r)
void _nested_draw_fx (laRenderer *r, laPoint3 ptBasePos)
void _nested_draw_interface (laRenderer *r, laPoint3 ptBasePos)
void _nested_animate (laTimer &t)
void _nested_draw (laRenderer *r, laPoint3 ptBasePos)
void _nested_destroy ()
virtual void _drawFx_notrans (laRenderer *r, laPoint3 ptBasePos)
virtual void _drawFx_positioned (laRenderer *r)
virtual void _drawFx_positioned_rotated (laRenderer *r)
virtual void _draw_notrans (laRenderer *r, laPoint3 ptBasePos)
virtual void _draw_positioned (laRenderer *r)
virtual void _draw_positioned_rotated (laRenderer *r)
virtual void _execute_ai (laTimer &t)

Protected Attributes

laPivot _ptPivot
laColor _color
laOutline _outline
M_BOOL _bLightOn
unsigned _nNext_ID
std::map< unsigned, laObject * > _mNestedObjects
aiAgent _ai

Static Protected Attributes

static laTexture _texShadow

Detailed Description

Base Class for Level Objects.

This base class begins the class hierarchy of all dynamic objects that placed in a level

Copyright (C) 2007-2013 Atanas Laskov, latan.nosp@m.as@g.nosp@m.mail..nosp@m.com

Definition at line 43 of file laObject.h.

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