[Crossfire-wiki] [Crossfire DokuWiki] page changed: dev:object_fields

no-reply_wiki at metalforge.org no-reply_wiki at metalforge.org
Wed Jan 3 07:26:12 CST 2007


A page in your DokuWiki was added or changed. Here are the details:

Date        : 2007/01/03 07:26
User        : ryo
Edit Summary: some info

@@ -1,124 +1,124 @@
  This is the description of fields of the object structure, and what they are used to.
  
  See also [[dev:objects]]
  
- FIXME fill in the blanks :)
+ FIXME fill in the blanks :) add sharedstring info
  
  ==== contr ====
  Type: pl *
  
- Meaning:
+ Meaning: Pointer to the player which control this object
  
  ==== next ====
  Type: obj *
  
- Meaning:
+ Meaning: Pointer to the next object in the free/used list
  
  ==== prev ====
  Type: obj *
  
- Meaning:
+ Meaning: Pointer to the next object in the free/used list
  
  ==== active_next ====
  Type: obj *
  
- Meaning:
+ Meaning: Next object in the 'active' list This is used in process_events so that the entire object list does not need to be gone through.
  
  ==== active_prev ====
  Type: obj *
  
- Meaning:
+ Meaning: Previous object in the 'active list This is used in process_events so that the entire object list does not need to be gone through.
  
  ==== below ====
  Type: obj *
  
- Meaning:
+ Meaning: Pointer to the object stacked below this one
  
  ==== above ====
  Type: obj *
  
- Meaning:
+ Meaning: Pointer to the object stacked above this one
  
  ==== inv ====
  Type: obj *
  
- Meaning:
+ Meaning: Pointer to the first object in the inventory
  
  ==== container ====
  Type: obj *
  
- Meaning:
+ Meaning: Current container being used. I think this is only used by the player right now.
  
  ==== env ====
  Type: obj *
  
- Meaning:
+ Meaning: Pointer to the object which is the environment. This is typically the container that the object is in.
  
  ==== more ====
  Type: obj *
  
- Meaning:
+ Meaning: Pointer to the rest of a large body of objects
  
  ==== head ====
  Type: obj *
  
- Meaning:
+ Meaning: Points to the main object of a large body
  
  ==== map ====
  Type: mapdef *
  
- Meaning:
+ Meaning: Pointer to the map in which this object is present
  
  ==== count ====
  Type: tag_t
  
- Meaning:
+ Meaning: Unique object number for this object
  
  ==== refcount ====
  Type: uint16
  
- Meaning:
+ Meaning: How many objects points to this object
  
  ==== name ====
- Type: const char *
+ Type: const char * (shared string)
  
- Meaning:
+ Meaning: The name of the object, obviously...
  
  ==== name_pl ====
- Type: const char *
+ Type: const char * (shared string)
  
- Meaning:
+ Meaning:  The plural name of the object. Shared string.
  
  ==== title ====
- Type: const char *
+ Type: const char * (shared string)
  
- Meaning:
+ Meaning: Of foo, etc.
  
  ==== race ====
- Type: const char *
+ Type: const char * (shared string)
  
- Meaning:
+ Meaning: Human, goblin, dragon, etc.
  
  ==== slaying ====
- Type: const char *
+ Type: const char * (shared string)
  
- Meaning:
+ Meaning: Which race to do double damage to. If this is an exit, this is the filename. !/ means 'random map' for exits.
  
  ==== skill ====
- Type: const char *
+ Type: const char * (shared string)
  
- Meaning:
+ Meaning: Name of the skill this object uses/grants
  
  ==== msg ====
- Type: const char *
+ Type: const char * (shared string)
  
- Meaning:
+ Meaning: If this is a book/sign/magic mouth/etc. For random maps, map parameters.
  
  ==== lore ====
- Type: const char *
+ Type: const char * (shared string)
  
- Meaning:
+ Meaning: Obscure information about this object, to get put into books and the like.
  
  ==== x ====
  Type: sint16
  
@@ -131,14 +131,14 @@
  
  ==== ox ====
  Type: sint16
  
- Meaning:
+ Meaning: For debugging: Where it was last inserted
  
  ==== oy ====
  Type: sint16
  
- Meaning:
+ Meaning: For debugging: Where it was last inserted
  
  ==== speed ====
  Type: float
  
@@ -214,9 +214,9 @@
  
  Meaning:
  
  ==== materialname ====
- Type: const char *
+ Type: const char * (shared string)
  
  Meaning:
  
  ==== magic ====
@@ -309,9 +309,9 @@
  
  Meaning:
  
  ==== current_weapon_script ====
- Type: const char *
+ Type: const char * (shared string)
  
  Meaning:
  
  ==== current_weapon ====
@@ -534,9 +534,9 @@
  
  Meaning:
  
  ==== custom_name ====
- Type: const char *
+ Type: const char * (shared string)
  
  Meaning:
  
  ==== key_values ====


IP-Address  : 62.23.167.225
Old Revision: http://wiki.metalforge.net/doku.php/dev:object_fields?rev=1167830301
New Revision: http://wiki.metalforge.net/doku.php/dev:object_fields

-- 
This mail was generated by DokuWiki at
http://wiki.metalforge.net/




More information about the crossfire-wiki mailing list