This shows you the differences between two versions of the page.
Both sides previous revision Previous revision Next revision | Previous revision | ||
arch:arch_attributes:c [2018/04/12 07:13] karl Cleanup, split Arch and object.h variales |
arch:arch_attributes:c [2018/04/18 08:37] (current) karl [can_cast_*] add can_see_in_dark |
||
---|---|---|---|
Line 9: | Line 9: | ||
=== can_cast_spell == | === can_cast_spell == | ||
+ | ==== can_see_in_dark == | ||
+ | Type: #define FLAG_SEE_IN_DARK 93 | ||
+ | |||
+ | Comment: /* if set ob not effected by darkness */ | ||
+ | |||
+ | Meaning: | ||
==== can_use_* == | ==== can_use_* == | ||
=== can_use_armour == | === can_use_armour == | ||
Line 19: | Line 25: | ||
=== can_use_weapon == | === can_use_weapon == | ||
- | |||
- | ==== carrying ==== | ||
- | Type: sint32 | ||
- | |||
- | Meaning: | ||
==== casting_time ==== | ==== casting_time ==== | ||
Type: sint16 | Type: sint16 | ||
+ | |||
+ | Comment: Time left before spell goes off | ||
Meaning: | Meaning: | ||
Line 34: | Line 37: | ||
==== Cha ==== | ==== Cha ==== | ||
Type: sint8 | Type: sint8 | ||
- | |||
- | Meaning: | ||
- | |||
- | ==== chosen_skill ==== | ||
- | Type: obj * | ||
Meaning: | Meaning: | ||
Line 44: | Line 42: | ||
==== client_type ==== | ==== client_type ==== | ||
Type: uint16 | Type: uint16 | ||
+ | |||
+ | Comment: Public type information. see doc/Developers/objects | ||
Meaning: | Meaning: | ||
Line 54: | Line 54: | ||
Meaning: | Meaning: | ||
+ | ==== container ==== | ||
+ | Type: | ||
- | ==== current_weapon ==== | + | Comment: |
- | Type: obj * | + | |
- | Meaning: | + | Meaning: How much weight in grams the container can hold. |
- | + | ||
- | See also [[w:weapontype]] | + | |
- | + | ||
- | ==== current_weapon_script ==== | + | |
- | Type: const char * (shared string) | + | |
- | + | ||
- | Meaning: | + | |
==== custom_name ==== | ==== custom_name ==== | ||
Type: const char * (shared string) | Type: const char * (shared string) | ||
+ | |||
+ | Comment: Custom name assigned by player | ||
Meaning: The player command [[:player_commands#rename]] sets it. | Meaning: The player command [[:player_commands#rename]] sets it. | ||
Line 87: | Line 83: | ||
Read more on the [[:dev:object_fields]] page. | Read more on the [[:dev:object_fields]] page. | ||
+ | ==== carrying ==== | ||
+ | Type: sint32 | ||
+ | |||
+ | Comment: How much weight this object contains | ||
+ | |||
+ | Meaning: | ||
+ | |||
+ | ==== chosen_skill ==== | ||
+ | Type: obj * | ||
+ | |||
+ | Comment: The skill chosen to use | ||
+ | |||
+ | Meaning: | ||
==== container ==== | ==== container ==== | ||
Type: obj * | Type: obj * | ||
- | Meaning: Current container being used. I think this is only used by the player right now. | + | Comment: Current container being used. I think this is only used by the player right now. |
+ | |||
+ | Meaning: | ||
==== contr ==== | ==== contr ==== | ||
Type: pl * | Type: pl * | ||
- | Meaning: | + | Comment: Pointer to the player which control this object. |
- | * pointer to the player which control this object. Will only be set for the player's object itself, and not items in inventory. | + | |
+ | Meaning: Will only be set for the player's object itself, and not items in inventory. | ||
==== count ==== | ==== count ==== | ||
Type: tag_t | Type: tag_t | ||
- | Meaning: Unique object number for this object | + | Comment: Unique object number for this object |
+ | |||
+ | Meaning: | ||
+ | |||
+ | |||
+ | ==== current_weapon ==== | ||
+ | Type: obj * | ||
+ | |||
+ | Comment: Pointer to the weapon currently used | ||
+ | |||
+ | Meaning: | ||
+ | |||
+ | See also [[w#weapontype]] | ||
+ | |||
+ | ==== current_weapon_script ==== | ||
+ | Type: const char * (shared string) | ||
+ | |||
+ | Comment: | ||
+ | Meaning: Not anymore included since when ? | ||