gemContainers are the public containers in the world for crafting, like forges or ovens.
More...
|
bool | AddToContainer (psItem *item, Client *fromClient, int slot=-1) |
|
bool | CanAdd (unsigned short amountToAdd, psItem *item, int slot, csString &reason) |
| Check if a item can be added to a container. More...
|
|
bool | CanTake (Client *client, psItem *item) |
| Checks if client is allowed to remove an item from the container. More...
|
|
void | CleareWithoutDelete () |
| Clear list of items without delting them. More...
|
|
size_t | CountItems () |
|
psItem * | FindItemInSlot (int slot, int stackCount=-1) |
|
| gemContainer (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) |
|
psItem * | GetIndexItem (size_t i) |
|
bool | RemoveFromContainer (psItem *item, Client *fromClient) |
|
psItem * | RemoveFromContainer (psItem *itemStack, int fromSlot, Client *fromClient, int stackCount) |
| Remove an item from the container. More...
|
|
int | SlotCount () |
|
| ~gemContainer () |
|
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. More...
|
|
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. More...
|
|
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. More...
|
|
virtual bool | IsPickupableStrong () |
| Gets if the object can be picked up from anyone according to strong rules. More...
|
|
virtual bool | IsPickupableWeak () |
| Gets if the object can be picked up from anyone according to weak rules. More...
|
|
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. More...
|
|
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. More...
|
|
virtual void | SetRotation (float xrotangle, float yrotangle, float zrotangle) |
| Set the x, y and z axis rotations for the item. More...
|
|
void | SetTribeID (uint32_t id) |
|
virtual | ~gemItem () |
|
virtual double | GetProperty (MathEnvironment *env, const char *ptr) |
|
virtual double | CalcFunction (MathEnvironment *env, const char *functionName, const double *params) |
|
| 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 | IsSecutityLocked () |
|
virtual void | Disconnect () |
| Called when a client disconnects. More...
|
|
virtual void | Dump () |
| Dump debug information. More...
|
|
gemActor * | GetActorPtr () |
|
gemActionLocation * | GetALPtr () |
|
virtual psCharacter * | GetCharacterData () |
|
virtual Client * | GetClient () const |
|
uint32_t | GetClientID () |
|
EID | GetEID () |
|
InstanceID | GetInstance () |
|
psItem * | GetItem () |
|
gemItem * | GetItemPtr () |
|
const char * | GetName () |
|
gemNPC * | GetNPCPtr () |
|
gemPet * | GetPetPtr () |
|
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 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 *§or) |
|
void | GetPosition (csVector3 &pos, iSector *§or) |
|
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) |
|
ProximityList * | GetProxList () |
|
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 psGuildInfo * | GetGuild () |
|
virtual bool | UpdateDR () |
|
virtual void | BroadcastTargetStatDR (ClientConnectionSet *clients) |
|
virtual void | SendTargetStatDR (Client *client) |
|
virtual psNPCDialog * | GetNPCDialogPtr () |
|
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 Client * | GetRandomLootClient (int range) |
|
virtual AccountID | GetSuperclientID () |
|
virtual void | SetSuperclientID (AccountID id) |
|
virtual bool | SeesObject (gemObject *object, float range) |
|
virtual gemObject * | GetOwner () |
|
virtual bool | HasKillStealProtection () |
| Returns if the object has killsteal protection. More...
|
|
virtual | ~iDeleteNotificationObject () |
|
virtual | ~iScriptableVar () |
|
gemContainers are the public containers in the world for crafting, like forges or ovens.
Regular containers in inventory, like sacks, are simulated by psCharInventory.
Definition at line 935 of file gem.h.