|
Serials |
functions for handle serials stuff
|
| const Serial | getSerial () const |
| | return the object's serial
|
| const SI32 | getSerial32 () const |
| | return the serial of the object
|
| void | setSerial32 (SI32 newserial) |
| | Set the serial of the object.
|
| const void | setSerialByte (UI32 nByte, BYTE value) |
| | set one byte of the object's serial
|
| const Serial | getMultiSerial () const |
| | return the object's multi serial
|
| const SI32 | getMultiSerial32 () const |
| | return the multi serial of the object
|
| void | setMultiSerial32Only (SI32 newserial) |
| | Set the multi serial of the object.
|
| const void | setMultiSerialByte (UI32 nByte, BYTE value) |
| | set one byte of the object's multi serial
|
| const SI32 | getSpawnSerial () const |
| | return the spawn serial of the object
|
| void | setSpawnSerial (SI32 newserial) |
| | Set the spawn serial of the object.
|
| const SI32 | getSpawnRegion () const |
| | return the spawn region of the object
|
| void | setSpawnRegion (SI32 newserial) |
| | Set the spawn getSpawnSerial of the object.
|
| const Serial | getOwnerSerial () const |
| | return the object's owner serial
|
| const SI32 | getOwnerSerial32 () const |
| | return the object's owner serial
|
| void | setOwnerSerial32Only (SI32 newserial) |
| void | setOwnerSerial32 (SI32 newserial, bool force=false) |
| const void | setOwnerSerialByte (UI32 nByte, BYTE value) |
| | set one byte of the object's owner serial
|
| void | setSameOwnerAs (const cObject *obj) |
| Serial | serial |
| | serial of the object
|
| Serial | multi_serial |
| | multi serial of the object (don't know what it is used for)
|
| Serial | OwnerSerial |
| | If Char is an NPC, this sets its owner.
|
| Serial | spawnserial |
| Serial | spawnregion |
Positions |
Position related stuff
|
| const Location | getPosition () const |
| | return the position of the object
|
| SI32 | getPosition (const char *what) const |
| | return one coord of the object position
|
| void | setPosition (const char *what, SI32 value) |
| | Set one coord of the object position.
|
| void | setPosition (Location where) |
| | Set the position of the object.
|
| void | setPosition (UI32 x, UI32 y, SI08 z) |
| | Set the position of the object.
|
| const Location | getOldPosition () const |
| SI32 | getOldPosition (const char *what) const |
| void | setOldPosition (const char *what, SI32 value) |
| void | setOldPosition (const Location where) |
| void | setOldPosition (SI32 x, SI32 y, signed char z, signed char dispz) |
| Location | old_position |
| | old position of object
|
| Location | position |
| | current position of object
|
Appearence |
| const string | getRealName () const |
| | return the real name of object
|
| const char * | getRealNameC () const |
| | return the real name of object
|
| void | setRealName (string s) |
| | Set the real name of object.
|
| void | setRealName (const char *str) |
| | Set the real name of object.
|
| const string | getCurrentName () const |
| | return the current name of object
|
| const char * | getCurrentNameC () const |
| | return the current name of object
|
| void | setCurrentName (string s) |
| | Set the current name of object.
|
| void | setCurrentName (const char *str) |
| | Set the current name of object.
|
| void | setCurrentName (char *format,...) |
| | Set the current name of object.
|
| void | setSecondaryName (string s) |
| | Set the secondary name of object.
|
| const char * | getSecondaryNameC () const |
| | Get the secondary name of the object.
|
| const string | getSecondaryName () const |
| | Get the secondary name of the object.
|
| void | setSecondaryName (const char *format,...) |
| | Set the secondary name of the object.
|
| string | secondary_name |
| string | current_name |
| | Name displayed everywhere for this object, 30 char max + '\0'.
|
Temp - Fx |
| LOGICAL | addTempfx (tempfx::cTempfx *fx) |
| | Tell if the AmxEvent id is valid Adds an existing temp effect to the object.
|
| LOGICAL | addTempfx (cObject &src, SI32 num, SI08 more1=0, SI08 more2=0, SI08 more3=0, SI08 more4=0, SI32 dur=0, SI32 amxcback=-1) |
| | Adds a temp effect to the object.
|
| void | delTempfx (SI32 num, LOGICAL executeExpireCode=true, SERIAL funcidx=-1) |
| | Deletes every tempfx of the specified number.
|
| void | checkTempfx () |
| void | tempfxOn () |
| | Activates the temp effects.
|
| void | tempfxOff () |
| | Deactivates the temp effects.
|
| LOGICAL | hasTempfx () |
| | Tells if the object has tempfx in queue.
|
| tempfx::cTempfx * | getTempfx (SI32 num, SERIAL funcidx=-1) |
| | Get the tempfx from given num and funcidx.
|
| TempfxVector * | getTempfxVec () |
| | Return the tempfx vector from the object.
|
| UI32 | ScriptID |
| TempfxVector * | tempfx |
Public Methods |
| | cObject () |
| virtual | ~cObject () |
| const UI32 | getScriptID () const |
| | return the object's script number
|
| void | setScriptID (UI32 sid) |
| | set the object's script number
|
| const SI08 | getGender () const |
| void | setGender (SI08 newGender) |
| const SI32 | getRace () const |
| void | setRace (SI32 newRace) |
| virtual void | Delete () |
| | Tells if the object has tempfx in queue.
|
| void | setId (UI16 newId) |
| const UI16 | getId () const |
| void | setOldId (UI16 oldId) |
| const UI16 | getOldId () const |
| void | setColor (COLOR newColor) |
| const COLOR | getColor () const |
| void | setOldColor (COLOR oldColor) |
| const COLOR | getOldColor () const |
|
| bool | operator> (const cObject &obj) const |
| bool | operator< (const cObject &obj) const |
| bool | operator>= (const cObject &obj) const |
| bool | operator<= (const cObject &obj) const |
| bool | operator== (const cObject &obj) const |
| bool | operator!= (const cObject &obj) const |
Static Public Methods |
| std::string | getRandomScriptValue (std::string section, std::string §ionId) |
Public Attributes |
| UI32 | disabled |
| | Disabled object timer, cant trigger.
|
| std::string * | disabledmsg |
| | Object is disabled, so display this message.
|
Protected Types |
| enum | { OBJECT,
ITEM,
CHAR
} |
Protected Attributes |
| enum cObject:: { ... } | objtype |
Static Private Methods |
| cScpIterator * | getScriptIterator (std::string section, std::string §ionId) |
Private Attributes |
| SI08 | gender |
| UI16 | id_old |
| UI16 | id |
| COLOR | color |
| COLOR | color_old |
|
Race related functions and attributes now an property of all objects |
| SI32 | race |
| | Race index.
|