|
Item type info. Item type info. This class represents only item type information. You can't assign it to player. To do that, you need to create instance of this item type (you can use createItem() method to do that). Located in /classes/OTS_ItemType.php [line 47] Author(s):
Information Tags:
|
|
| FLAG_ALLOWDISTREAD | Can be read from distance. |
| FLAG_ALWAYSONTOP | Is always over other items in stack. |
| FLAG_BLOCK_PATHFIND | Can block searching for path. |
| FLAG_BLOCK_PROJECTILE | BLOCK_PROJECTILE flag(?). |
| FLAG_BLOCK_SOLID | Can block characters from walking. |
| FLAG_CANNOTDECAY | Doesn't decay. |
| FLAG_FLOORCHANGEDOWN | Changes floor under it. |
| FLAG_FLOORCHANGEEAST | Changes floor east from it's position. |
| FLAG_FLOORCHANGENORTH | Changes floor north from it's position. |
| FLAG_FLOORCHANGESOUTH | Changes floor south from it's position. |
| FLAG_FLOORCHANGEWEST | Changes floor west from it's position. |
| FLAG_HANGABLE | Can be hang(?). |
| FLAG_HAS_HEIGHT | Does item rises stack height on it's field. |
| FLAG_HORIZONTAL | Is oriented horizontaly. |
| FLAG_MOVEABLE | Can be moved by player. |
| FLAG_PICKUPABLE | Can be picked up by player. |
| FLAG_READABLE | Has readable sign. |
| FLAG_ROTABLE | Can be rotated by player. |
| FLAG_STACKABLE | Can be grouped with another items. |
| FLAG_USEABLE | Can be used by players. |
| FLAG_VERTICAL | Is oriented verticaly. |
| ITEM_GROUP_AMMUNITION | Ammunition. |
| ITEM_GROUP_ARMOR | Armor. |
| ITEM_GROUP_CONTAINER | Container. |
| ITEM_GROUP_DEPRECATED | Deprecated item. |
| ITEM_GROUP_DOOR | Door. |
| ITEM_GROUP_FLUID | Liquid thing. |
| ITEM_GROUP_GROUND | Ground tile. |
| ITEM_GROUP_KEY | Key. |
| ITEM_GROUP_MAGICFIELD | Magic field. |
| ITEM_GROUP_NONE | No group speciffied. |
| ITEM_GROUP_RUNE | Rune. |
| ITEM_GROUP_SPLASH | Splash effect. |
| ITEM_GROUP_TELEPORT | Teleport field. |
| ITEM_GROUP_WEAPON | Weapon. |
| ITEM_GROUP_WRITEABLE | Item that can store editable sign. |
| ITEM_TYPE_CONTAINER | Container. |
| ITEM_TYPE_DEPOT | Depot locker. |
| ITEM_TYPE_DOOR | Door. |
| ITEM_TYPE_MAGICFIELD | Magic field. |
| ITEM_TYPE_MAILBOX | Mailbox. |
| ITEM_TYPE_NONE | No special type. |
| ITEM_TYPE_TELEPORT | Teleport. |
| ITEM_TYPE_TRASHHOLDER | Trash can. |
| static void | __set_state() | Magic PHP5 method. |
| OTS_Item | createItem() | Creates instance of this type. |
| string | getAttribute() | Returns given attribute. |
| array | getAttributesList() | Returns all attributes list. |
| int | getClientId() | Returns item type client ID. |
| int | getGroup() | Returns group. |
| int | getId() | Returns item type server ID. |
| string | getName() | Returns item name. |
| int | getType() | Returns item type. |
| bool | hasAttribute() | Checks if this type has given attribute. |
| bool | hasHeight() | Checks if item has height. |
| bool | isAlwaysOnTop() | Checks if item is always on top. |
| bool | isBlocking() | Checks if item is blocking. |
| bool | isHangable() | Checks if item can be hanged. |
| bool | isHorizontal() | Checks if item is horizontal. |
| bool | isMovable() | Checks if item is movable. |
| bool | isPickupable() | Checks if item is pickupable. |
| bool | isReadable() | Checks if item is readable. |
| bool | isRotable() | Checks if item can be rotated. |
| bool | isStackable() | Checks if item is stackable. |
| bool | isUsable() | Checks if item is usable. |
| bool | isVertical() | Checks if item is vertical. |
| OTS_ItemType | __construct() | Initializes new item type object. |
| void | setAttribute() | Sets given attribute. |
| void | setClientId() | Sets client side ID. |
| void | setFlags() | Sets type flags. |
| void | setGroup() | Sets item group. |
| void | setName() | Sets item type name. |
| void | setType() | Sets item type. |
| mixed | __get() | Magic PHP5 method. |
| void | __set() | Magic PHP5 method. |
| string | __toString() | Returns string representation of object. |
|
Magic PHP5 method.
Magic PHP5 method. Allows object importing from var_export().
Parameters:| array | $properties: | List of object properties. |
| Access: | public |
| Version: | 0.1.3 |
| Version: | 0.0.8 |
| Since: | 0.0.8 |
|
Creates instance of this type.
Creates instance of this type.
| Return: | Item instance. |
| Access: | public |
| Version: | 0.0.8 |
| Since: | 0.0.8 |
|
Returns given attribute.
Returns given attribute.
Parameters:| string | $attribyte: | Attribute name. |
| $name: |
| Return: | Attribute value. |
| Access: | public |
| Version: | 0.1.3 |
| Version: | 0.0.8 |
| Throws: | OutOfBoundsException If not set. |
| Since: | 0.0.8 |
|
Returns all attributes list.
Returns all attributes list.
| Return: | List of attributes. |
| Access: | public |
| Version: | 0.0.8 |
| Since: | 0.0.8 |
|
Returns item type client ID.
Returns item type client ID.
| Return: | Cient ID. |
| Access: | public |
| Version: | 0.0.8 |
| Since: | 0.0.8 |
|
Returns group.
Returns group.
| Return: | Item group. |
| Access: | public |
| Version: | 0.0.8 |
| Since: | 0.0.8 |
|
Returns item type server ID.
Returns item type server ID.
| Return: | ID. |
| Access: | public |
| Version: | 0.0.8 |
| Since: | 0.0.8 |
|
Returns item name.
Returns item name.
| Return: | Item type name. |
| Access: | public |
| Version: | 0.0.8 |
| Since: | 0.0.8 |
|
Returns item type.
Returns item type.
| Return: | Item type. |
| Access: | public |
| Version: | 0.0.8 |
| Since: | 0.0.8 |
|
Checks if this type has given attribute.
Checks if this type has given attribute.
Parameters:| string | $attribyte: | Attribute name. |
| $name: |
| Return: | Attribute set state. |
| Access: | public |
| Version: | 0.1.3 |
| Version: | 0.0.8 |
| Since: | 0.0.8 |
| Since: | 0.1.3 |
|
Checks if item has height.
Checks if item has height.
| Return: | Has item height. |
| Access: | public |
| Version: | 0.0.8 |
| Since: | 0.0.8 |
|
Checks if item is always on top.
Checks if item is always on top.
| Return: | Is item always on top. |
| Access: | public |
| Version: | 0.0.8 |
| Since: | 0.0.8 |
|
Checks if item is blocking.
Checks if item is blocking.
| Return: | Is item blocking. |
| Access: | public |
| Version: | 0.0.8 |
| Since: | 0.0.8 |
|
Checks if item can be hanged.
Checks if item can be hanged.
| Return: | Is item can be hanged. |
| Access: | public |
| Version: | 0.0.8 |
| Since: | 0.0.8 |
|
Checks if item is horizontal.
Checks if item is horizontal.
| Return: | Is item horizontal. |
| Access: | public |
| Version: | 0.0.8 |
| Since: | 0.0.8 |
|
Checks if item is movable.
Checks if item is movable.
| Return: | Is item movable. |
| Access: | public |
| Version: | 0.0.8 |
| Since: | 0.0.8 |
|
Checks if item is pickupable.
Checks if item is pickupable.
| Return: | Is item pickuable. |
| Access: | public |
| Version: | 0.0.8 |
| Since: | 0.0.8 |
|
Checks if item is readable.
Checks if item is readable.
| Return: | Is item readable. |
| Access: | public |
| Version: | 0.0.8 |
| Since: | 0.0.8 |
|
Checks if item can be rotated.
Checks if item can be rotated.
| Return: | Is item can be rotated. |
| Access: | public |
| Version: | 0.0.8 |
| Since: | 0.0.8 |
|
Checks if item is stackable.
Checks if item is stackable.
| Return: | Is item stackable. |
| Access: | public |
| Version: | 0.0.8 |
| Since: | 0.0.8 |
|
Checks if item is usable.
Checks if item is usable.
| Return: | Is item usable. |
| Access: | public |
| Version: | 0.0.8 |
| Since: | 0.0.8 |
|
Checks if item is vertical.
Checks if item is vertical.
| Return: | Is item vertical. |
| Access: | public |
| Version: | 0.0.8 |
| Since: | 0.0.8 |
|
Initializes new item type object.
Initializes new item type object.
Parameters:| int | $id: | Server ID. |
| Access: | public |
| Version: | 0.0.8 |
| Since: | 0.0.8 |
|
Sets given attribute.
Sets given attribute.
Parameters:| string | $attribute: | Attribute name. |
| string | $value: | Attribute value. |
| $name: |
| Access: | public |
| Version: | 0.0.8 |
| Since: | 0.0.8 |
|
Sets client side ID.
Sets client side ID.
Parameters:| int | $clientId: | Client ID. |
| Access: | public |
| Version: | 0.0.8 |
| Since: | 0.0.8 |
|
Sets type flags.
Sets type flags.
Parameters:| int | $flags: | Flags. |
| Access: | public |
| Version: | 0.0.8 |
| Since: | 0.0.8 |
|
Sets item group.
Sets item group.
Parameters:| int | $group: | Group. |
| Access: | public |
| Version: | 0.0.8 |
| Since: | 0.0.8 |
|
Sets item type name.
Sets item type name.
Parameters:| string | $name: | Name. |
| Access: | public |
| Version: | 0.0.8 |
| Since: | 0.0.8 |
|
Sets item type.
Sets item type.
Parameters:| int | $type: | Type. |
| Access: | public |
| Version: | 0.0.8 |
| Since: | 0.0.8 |
|
Magic PHP5 method.
Magic PHP5 method.
Parameters:| string | $name: | Property name. |
| Return: | Property value. |
| Access: | public |
| Version: | 0.1.0 |
| Version: | 0.0.8 |
| Throws: | OutOfBoundsException For non-supported properties. |
| Since: | 0.1.0 |
| Since: | 0.0.8 |
|
Magic PHP5 method.
Magic PHP5 method.
Parameters:| string | $name: | Property name. |
| mixed | $value: | Property value. |
| Access: | public |
| Version: | 0.1.0 |
| Version: | 0.0.8 |
| Throws: | OutOfBoundsException For non-supported properties. |
| Since: | 0.1.0 |
| Since: | 0.0.8 |
|
Returns string representation of object.
Returns string representation of object. If any display driver is currently loaded then it uses it's method. Otherwise just returns item ID.
| Return: | String representation of object. |
| Access: | public |
| Version: | 0.1.3 |
| Version: | 0.0.8 |
| Since: | 0.0.8 |
| Since: | 0.1.3 |
Can be read from distance.
Can be read from distance.
Information Tags:| Version: | 0.0.8 |
| Since: | 0.0.8 |
Is always over other items in stack.
Is always over other items in stack.
Information Tags:| Version: | 0.0.8 |
| Since: | 0.0.8 |
Can block searching for path.
Can block searching for path.
Information Tags:| Version: | 0.0.8 |
| Since: | 0.0.8 |
BLOCK_PROJECTILE flag(?).
BLOCK_PROJECTILE flag(?).
Information Tags:| Version: | 0.0.8 |
| Since: | 0.0.8 |
Can block characters from walking.
Can block characters from walking.
Information Tags:| Version: | 0.0.8 |
| Since: | 0.0.8 |
Doesn't decay.
Doesn't decay.
Information Tags:| Version: | 0.0.8 |
| Since: | 0.0.8 |
Changes floor under it.
Changes floor under it.
Information Tags:| Version: | 0.0.8 |
| Since: | 0.0.8 |
Changes floor east from it's position.
Changes floor east from it's position.
Information Tags:| Version: | 0.0.8 |
| Since: | 0.0.8 |
Changes floor north from it's position.
Changes floor north from it's position.
Information Tags:| Version: | 0.0.8 |
| Since: | 0.0.8 |
Changes floor south from it's position.
Changes floor south from it's position.
Information Tags:| Version: | 0.0.8 |
| Since: | 0.0.8 |
Changes floor west from it's position.
Changes floor west from it's position.
Information Tags:| Version: | 0.0.8 |
| Since: | 0.0.8 |
Can be hang(?).
Can be hang(?).
Information Tags:| Version: | 0.0.8 |
| Since: | 0.0.8 |
Does item rises stack height on it's field.
Does item rises stack height on it's field.
Information Tags:| Version: | 0.0.8 |
| Since: | 0.0.8 |
Is oriented horizontaly.
Is oriented horizontaly.
Information Tags:| Version: | 0.0.8 |
| Since: | 0.0.8 |
Can be moved by player.
Can be moved by player.
Information Tags:| Version: | 0.0.8 |
| Since: | 0.0.8 |
Can be picked up by player.
Can be picked up by player.
Information Tags:| Version: | 0.0.8 |
| Since: | 0.0.8 |
Has readable sign.
Has readable sign.
Information Tags:| Version: | 0.0.8 |
| Since: | 0.0.8 |
Can be rotated by player.
Can be rotated by player.
Information Tags:| Version: | 0.0.8 |
| Since: | 0.0.8 |
Can be grouped with another items.
Can be grouped with another items.
Information Tags:| Version: | 0.0.8 |
| Since: | 0.0.8 |
Can be used by players.
Can be used by players.
Information Tags:| Version: | 0.0.8 |
| Since: | 0.0.8 |
Is oriented verticaly.
Is oriented verticaly.
Information Tags:| Version: | 0.0.8 |
| Since: | 0.0.8 |
Ammunition.
Ammunition.
Information Tags:| Version: | 0.0.8 |
| Since: | 0.0.8 |
Container.
Container.
Information Tags:| Version: | 0.0.8 |
| Since: | 0.0.8 |
Deprecated item.
Deprecated item.
Information Tags:| Version: | 0.1.0 |
| Version: | 0.0.8 |
| Since: | 0.0.8 |
| Since: | 0.1.0 |
Liquid thing.
Liquid thing.
Information Tags:| Version: | 0.0.8 |
| Since: | 0.0.8 |
Ground tile.
Ground tile.
Information Tags:| Version: | 0.0.8 |
| Since: | 0.0.8 |
Magic field.
Magic field.
Information Tags:| Version: | 0.0.8 |
| Since: | 0.0.8 |
No group speciffied.
No group speciffied.
Information Tags:| Version: | 0.0.8 |
| Since: | 0.0.8 |
Splash effect.
Splash effect.
Information Tags:| Version: | 0.0.8 |
| Since: | 0.0.8 |
Teleport field.
Teleport field.
Information Tags:| Version: | 0.0.8 |
| Since: | 0.0.8 |
Weapon.
Weapon.
Information Tags:| Version: | 0.0.8 |
| Since: | 0.0.8 |
Item that can store editable sign.
Item that can store editable sign.
Information Tags:| Version: | 0.0.8 |
| Since: | 0.0.8 |
Container.
Container.
Information Tags:| Version: | 0.0.8 |
| Since: | 0.0.8 |
Depot locker.
Depot locker.
Information Tags:| Version: | 0.0.8 |
| Since: | 0.0.8 |
Magic field.
Magic field.
Information Tags:| Version: | 0.0.8 |
| Since: | 0.0.8 |
Mailbox.
Mailbox.
Information Tags:| Version: | 0.0.8 |
| Since: | 0.0.8 |
No special type.
No special type.
Information Tags:| Version: | 0.0.8 |
| Since: | 0.0.8 |
Teleport.
Teleport.
Information Tags:| Version: | 0.1.0 |
| Version: | 0.0.8 |
| Since: | 0.0.8 |
| Since: | 0.1.0 |
Trash can.
Trash can.
Information Tags:| Version: | 0.0.8 |
| Since: | 0.0.8 |