StendhalRefactoring: Difference between revisions
Jump to navigation
Jump to search
Content deleted Content added
imported>MiguelAngelBlanchLardin No edit summary |
imported>MiguelAngelBlanchLardin No edit summary |
||
| Line 35: | Line 35: | ||
** Cheese |
** Cheese |
||
** Bread |
** Bread |
||
=Creatures= |
|||
== Actions == |
|||
* Move |
|||
* Stop |
|||
* Chat |
|||
* Tell |
|||
* Outfit |
|||
* Attack |
|||
* Use |
|||
* Equip |
|||
* Drop |
|||
* Own ( a sheep ) |
|||
== Events == |
|||
Creatures can recieve the next list of events: |
|||
* onAttack(target, weapon) |
|||
* onAttacked(attacker, weapon) |
|||
* onStopAttack(target) |
|||
* onStopAttacked(target) |
|||
* onDamage(type, amount) |
|||
* onKilled(attacker, weapon) |
|||
* onKill(target) |
|||
* onMove(x,y) |
|||
* onCollide(x,y) |
|||
* onCollideWith(target) |
|||
* onEquip(item, slot) |
|||
* onEquipped(source, slot) |
|||
* onDrop(item, slot) |
|||
* onDropped(source, x, y) |
|||
* onChat(source, text) |
|||
* onUse(item) |
|||
* onUsed(source) |
|||
* onStop() |
|||
Revision as of 11:48, 24 October 2005
Items
We have the next items structure:
- Shields
- Wooden shield
- Studded shield
- Plate shield
- Copper shield
- Swords
- knife
- Sword
- Long sword
- Broadsword
- Armors
- Leather armor
- Studded armor
- Plater armor
- Copper armor
- Boots
- Sandals
- Leather
- Helmet
- Leather helmet
- Studded helmet
- Chain helmet
- Viking helmet
- Legs
- Leather legs
- Studded legs
- Chain legs
- Corpse
- Money
- Book
- Food
- Meat
- Cheese
- Bread
Creatures
Actions
- Move
- Stop
- Chat
- Tell
- Outfit
- Attack
- Use
- Equip
- Drop
- Own ( a sheep )
Events
Creatures can recieve the next list of events:
- onAttack(target, weapon)
- onAttacked(attacker, weapon)
- onStopAttack(target)
- onStopAttacked(target)
- onDamage(type, amount)
- onKilled(attacker, weapon)
- onKill(target)
- onMove(x,y)
- onCollide(x,y)
- onCollideWith(target)
- onEquip(item, slot)
- onEquipped(source, slot)
- onDrop(item, slot)
- onDropped(source, x, y)
- onChat(source, text)
- onUse(item)
- onUsed(source)
- onStop()