Planeshift
gemActionLocation Class Reference

#include <gem.h>

Public Member Functions

virtual void Broadcast (int clientnum, bool control)
 
 gemActionLocation (GEMSupervisor *gemSupervisor, EntityManager *entitymanager, CacheManager *cachemanager, psActionLocation *action, iSector *isec, int clientnum)
 
virtual psActionLocationGetAction ()
 
virtual float GetBaseAdvertiseRange ()
 This value indicates the range that this entity would become visible to other entities if no other modifiers were taken into consideration. More...
 
virtual const char * GetObjectType ()
 
virtual bool GetVisibility ()
 
virtual bool SeesObject (gemObject *object, float range)
 
virtual bool Send (int clientnum, bool control, bool to_superclients, psPersistAllEntities *allEntities=NULL)
 Send this object to the given client. More...
 
virtual void SendBehaviorMessage (const csString &str, gemObject *obj)
 
virtual void SetVisibility (bool vis)
 
- Public Member Functions inherited from gemActiveObject
 gemActiveObject (GEMSupervisor *gemSupervisor, EntityManager *entitymanager, CacheManager *cachemanager, const char *name, const char *factname, InstanceID myInstance, iSector *room, const csVector3 &pos, float rotangle, int clientnum)
 
virtual csString GetDefaultBehavior (const csString &dfltBehaviors)
 
virtual bool IsConstructible ()
 
virtual bool IsContainer ()
 
virtual bool IsLockable ()
 
virtual bool IsLocked ()
 
virtual bool IsPickupable ()
 
virtual bool IsPickupableStrong ()
 
virtual bool IsPickupableWeak ()
 
virtual bool IsSecutityLocked ()
 
- Public Member Functions inherited from gemObject
virtual void Disconnect ()
 Called when a client disconnects. More...
 
virtual void Dump ()
 Dump debug information. More...
 
gemActorGetActorPtr ()
 
gemActionLocationGetALPtr ()
 
virtual psCharacterGetCharacterData ()
 
virtual ClientGetClient () const
 
uint32_t GetClientID ()
 
EID GetEID ()
 
InstanceID GetInstance ()
 
psItemGetItem ()
 
gemItemGetItemPtr ()
 
const char * GetName ()
 
gemNPCGetNPCPtr ()
 
gemPetGetPetPtr ()
 
bool IsAlive () const
 Returns whether the object is alive. More...
 
virtual bool IsUpdateReq (csVector3 const &pos, csVector3 const &oldPos)
 
virtual bool IsValid (void)
 
float RangeTo (gemObject *obj, bool ignoreY=false, bool ignoreInstance=false)
 
void RegisterCallback (iDeleteObjectCallback *receiver)
 
void SetAlive (bool flag, bool queue=true)
 Set needed stats for alive or dead for object. More...
 
void SetInstance (InstanceID newInstance)
 
void SetName (const char *n)
 
void UnregisterCallback (iDeleteObjectCallback *receiver)
 
virtual ~gemObject ()
 
virtual double GetProperty (MathEnvironment *env, const char *ptr)
 
virtual double CalcFunction (MathEnvironment *env, const char *functionName, const double *params)
 
virtual const char * ToString ()
 
iMeshWrapper * GetMeshWrapper ()
 
csString GetMesh ()
 
void Move (const csVector3 &pos, float rotangle, iSector *room)
 
bool IsNear (gemObject *obj, float radius, bool ignoreY=false)
 
const csVector3 & GetPosition ()
 
void GetPosition (csVector3 &pos, float &yrot, iSector *&sector)
 
void GetPosition (csVector3 &pos, iSector *&sector)
 
float GetAngle ()
 Get rotation of entity as returned by psWorld::Matrix2YRot. More...
 
iSector * GetSector ()
 
virtual float GetVelocity ()
 Get the z velocity of the actor. More...
 
const char * GetSectorName ()
 
csArray< gemObject * > * GetObjectsInRange (float range)
 
ProximityListGetProxList ()
 
csArray< PublishDestination > & GetMulticastClients ()
 Returns all the clients which are inside our proxy list. More...
 
void UpdateProxList (bool force=false)
 Generates proxlist if needed (or forced). More...
 
void RemoveFromAllProx ()
 
void SetAlwaysWatching (bool w)
 
bool AlwaysWatching ()
 
virtual void SendGroupMessage (MsgEntry *me)
 Distribute this object to all members of a group. More...
 
virtual PID GetPID ()
 
virtual int GetGuildID ()
 
virtual psGuildInfoGetGuild ()
 
virtual bool UpdateDR ()
 
virtual void BroadcastTargetStatDR (ClientConnectionSet *clients)
 
virtual void SendTargetStatDR (Client *client)
 
virtual psNPCDialogGetNPCDialogPtr ()
 
virtual void GetLastSuperclientPos (csVector3 &pos, InstanceID &instance, csTicks &last) const
 
virtual void SetLastSuperclientPos (const csVector3 &pos, InstanceID instance, const csTicks &now)
 
virtual void AddLootablePlayer (PID playerID)
 
virtual void RemoveLootablePlayer (PID playerID)
 
virtual bool IsLootablePlayer (PID playerID)
 
virtual ClientGetRandomLootClient (int range)
 
virtual AccountID GetSuperclientID ()
 
virtual void SetSuperclientID (AccountID id)
 
virtual gemObjectGetOwner ()
 
virtual bool HasKillStealProtection ()
 Returns if the object has killsteal protection. More...
 
- Public Member Functions inherited from iDeleteNotificationObject
virtual ~iDeleteNotificationObject ()
 
- Public Member Functions inherited from iScriptableVar
virtual ~iScriptableVar ()
 

Additional Inherited Members

- Protected Member Functions inherited from gemObject
 gemObject (GEMSupervisor *gemsupervisor, EntityManager *entitymanager, CacheManager *cachemanager, const char *name, const char *factname, InstanceID myinstance, iSector *room, const csVector3 &pos, float rotangle, int clientnum)
 
void InitMesh (const char *name, const csVector3 &pos, const float rotangle, iSector *room)
 
bool InitProximityList (float radius, int clientnum)
 
- Protected Attributes inherited from gemObject
bool alwaysWatching
 True if this object always watches (proxlists) regardless of owner. More...
 
CacheManagercacheManager
 
EID eid
 Entity ID (unique identifier for object) More...
 
EntityManagerentityManager
 
csString factname
 Name of CS Mesh Factory used to create this object. More...
 
bool is_alive
 Flag indicating whether object is alive or not. More...
 
csString matname
 Name of base material used by this object. More...
 
csString name
 Name of this object, used mostly for debugging. More...
 
csRef< iMeshFactoryWrapper > nullfact
 Null factory for our mesh instances. More...
 
gemMeshpcmesh
 link to mesh class More...
 
float prox_distance_current
 What is the current actual range for proxlists (they adjust when the # of objects gets too high) More...
 
float prox_distance_desired
 What is the maximum range of proxlist we want. More...
 
ProximityListproxlist
 Proximity List for this object. More...
 
csArray< iDeleteObjectCallback * > receivers
 List of objects which are to be notified when this object is deleted. More...
 
bool valid
 Is object fully loaded. More...
 
InstanceID worldInstance
 Only objects which match instances can see each other. More...
 
- Static Protected Attributes inherited from gemObject
static GEMSupervisorcel
 Static ptr back to main collection of all objects. More...
 

Detailed Description

Definition at line 1029 of file gem.h.

Constructor & Destructor Documentation

gemActionLocation::gemActionLocation ( GEMSupervisor gemSupervisor,
EntityManager entitymanager,
CacheManager cachemanager,
psActionLocation action,
iSector *  isec,
int  clientnum 
)

Member Function Documentation

virtual void gemActionLocation::Broadcast ( int  clientnum,
bool  control 
)
virtual
Parameters
clientnumThe client that initiated this update.
controlSet to true when sent to the controlling client.

Reimplemented from gemActiveObject.

virtual psActionLocation* gemActionLocation::GetAction ( )
inlinevirtual

Definition at line 1043 of file gem.h.

virtual float gemActionLocation::GetBaseAdvertiseRange ( )
virtual

This value indicates the range that this entity would become visible to other entities if no other modifiers were taken into consideration.

Reimplemented from gemObject.

virtual const char* gemActionLocation::GetObjectType ( )
inlinevirtual

Reimplemented from gemActiveObject.

Definition at line 1039 of file gem.h.

virtual bool gemActionLocation::GetVisibility ( )
inlinevirtual

Reimplemented from gemObject.

Definition at line 1069 of file gem.h.

virtual bool gemActionLocation::SeesObject ( gemObject object,
float  range 
)
virtual

Reimplemented from gemObject.

virtual bool gemActionLocation::Send ( int  clientnum,
bool  control,
bool  to_superclients,
psPersistAllEntities allEntities = NULL 
)
virtual

Send this object to the given client.

Parameters
clientnumThe client that initiated this update.
controlSet to true when sent to the controlling client.
to_superclientsSend to super clients
allEntitiesBuffer the message instead of sending it.

Reimplemented from gemActiveObject.

virtual void gemActionLocation::SendBehaviorMessage ( const csString &  str,
gemObject obj 
)
virtual

Reimplemented from gemActiveObject.

virtual void gemActionLocation::SetVisibility ( bool  vis)
inlinevirtual

Definition at line 1073 of file gem.h.


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