Planeshift
|
#include <gem.h>
Public Member Functions | |
virtual void | Broadcast (int clientnum, bool control) |
void | ClearItemData () |
gemItem (GEMSupervisor *gemsupervisor, CacheManager *cachemanager, EntityManager *entitymanager, psItem *item, const char *factname, InstanceID myInstance, iSector *room, const csVector3 &pos, float xrotangle, float yrotangle, float zrotangle, int clientnum) | |
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. | |
virtual bool | GetCanTransform () |
psItem * | GetItemData () |
virtual const char * | GetObjectType () |
virtual void | GetRotation (float &xrotangle, float &yrotangle, float &zrotangle) |
Get the x,y and z axis rotations for the item. | |
uint32_t | GetTribeID () |
virtual bool | GetVisibility () |
virtual bool | IsConstructible () |
virtual bool | IsContainer () |
virtual bool | IsLockable () |
virtual bool | IsLocked () |
virtual bool | IsPickupable () |
Gets if the object can be picked up from anyone. | |
virtual bool | IsPickupableStrong () |
Gets if the object can be picked up from anyone according to strong rules. | |
virtual bool | IsPickupableWeak () |
Gets if the object can be picked up from anyone according to weak rules. | |
virtual bool | IsSecurityLocked () |
virtual bool | IsUsingCD () |
virtual bool | Send (int clientnum, bool control, bool to_superclients, psPersistAllEntities *allEntities=NULL) |
Send this object to the given client. | |
virtual void | SendBehaviorMessage (const csString &str, gemObject *obj) |
virtual void | SetPosition (const csVector3 &pos, float angle, iSector *sector, InstanceID instance) |
Set position of item in world. | |
virtual void | SetRotation (float xrotangle, float yrotangle, float zrotangle) |
Set the x, y and z axis rotations for the item. | |
void | SetTribeID (uint32_t id) |
virtual | ~gemItem () |
iScriptableVar implementation | |
Functions that implement the iScriptableVar interface. | |
virtual double | GetProperty (MathEnvironment *env, const char *ptr) |
virtual double | CalcFunction (MathEnvironment *env, const char *functionName, const double *params) |
Protected Attributes | |
psItem * | itemdata |
csString | itemType |
uint32_t | tribeID |
Holds the id of the tribe owning this item (0 if is not tribe-owned) | |
float | xRot |
float | yRot |
float | zRot |
gemItem::gemItem | ( | GEMSupervisor * | gemsupervisor, |
CacheManager * | cachemanager, | ||
EntityManager * | entitymanager, | ||
psItem * | item, | ||
const char * | factname, | ||
InstanceID | myInstance, | ||
iSector * | room, | ||
const csVector3 & | pos, | ||
float | xrotangle, | ||
float | yrotangle, | ||
float | zrotangle, | ||
int | clientnum | ||
) |
virtual void gemItem::Broadcast | ( | int | clientnum, |
bool | control | ||
) | [virtual] |
clientnum | The client that initiated this update. |
control | Set to true when sent to the controlling client. |
Reimplemented from gemActiveObject.
virtual double gemItem::CalcFunction | ( | MathEnvironment * | env, |
const char * | functionName, | ||
const double * | params | ||
) | [virtual] |
Reimplemented from gemObject.
virtual float gemItem::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 bool gemItem::GetCanTransform | ( | ) | [virtual] |
virtual const char* gemItem::GetObjectType | ( | ) | [inline, virtual] |
Reimplemented from gemActiveObject.
virtual double gemItem::GetProperty | ( | MathEnvironment * | env, |
const char * | ptr | ||
) | [virtual] |
Reimplemented from gemObject.
virtual void gemItem::GetRotation | ( | float & | xrotangle, |
float & | yrotangle, | ||
float & | zrotangle | ||
) | [virtual] |
Get the x,y and z axis rotations for the item.
xrotangle | the variable in which the x rotation will be stored |
yrotangle | the variable in which the y rotation will be stored |
zrotangle | the variable in which the z rotation will be stored |
virtual bool gemItem::GetVisibility | ( | ) | [virtual] |
Reimplemented from gemObject.
virtual bool gemItem::IsConstructible | ( | ) | [virtual] |
Reimplemented from gemActiveObject.
virtual bool gemItem::IsContainer | ( | ) | [virtual] |
Reimplemented from gemActiveObject.
virtual bool gemItem::IsLockable | ( | ) | [virtual] |
Reimplemented from gemActiveObject.
virtual bool gemItem::IsLocked | ( | ) | [virtual] |
Reimplemented from gemActiveObject.
virtual bool gemItem::IsPickupable | ( | ) | [virtual] |
Gets if the object can be picked up from anyone.
Reimplemented from gemActiveObject.
virtual bool gemItem::IsPickupableStrong | ( | ) | [virtual] |
Gets if the object can be picked up from anyone according to strong rules.
This is a stronger version.
Reimplemented from gemActiveObject.
virtual bool gemItem::IsPickupableWeak | ( | ) | [virtual] |
Gets if the object can be picked up from anyone according to weak rules.
This is a weaker version which allows more overriding of the not pickupable status.
Reimplemented from gemActiveObject.
virtual bool gemItem::IsSecurityLocked | ( | ) | [virtual] |
virtual bool gemItem::IsUsingCD | ( | ) | [virtual] |
virtual bool gemItem::Send | ( | int | clientnum, |
bool | control, | ||
bool | to_superclients, | ||
psPersistAllEntities * | allEntities = NULL |
||
) | [virtual] |
Send this object to the given client.
clientnum | The client that initiated this update. |
control | Set to true when sent to the controlling client. |
to_superclients | Send to super clients |
allEntities | Buffer the message instead of sending it. |
Reimplemented from gemActiveObject.
virtual void gemItem::SendBehaviorMessage | ( | const csString & | str, |
gemObject * | obj | ||
) | [virtual] |
Reimplemented from gemActiveObject.
virtual void gemItem::SetPosition | ( | const csVector3 & | pos, |
float | angle, | ||
iSector * | sector, | ||
InstanceID | instance | ||
) | [virtual] |
Set position of item in world.
pos | The coordinates of the object in the sector |
angle | The y rotation angle |
sector | The sector in which the object is |
instance | The instance the object is in |
Set the x, y and z axis rotations for the item.
xrotangle | the variable used to set the x rotation of the item |
yrotangle | the variable used to set the x rotation of the item |
zrotangle | the variable used to set the z rotation of the item |
psItem* gemItem::itemdata [protected] |
csString gemItem::itemType [protected] |
uint32_t gemItem::tribeID [protected] |
float gemItem::xRot [protected] |
float gemItem::yRot [protected] |
float gemItem::zRot [protected] |