This shows you the differences between two versions of the page.
Next revision | Previous revision Last revision Both sides next revision | ||
arch:arch_attributes:a [2018/04/11 13:34] karl created |
arch:arch_attributes:a [2018/04/12 11:33] karl Add stubs for animation and anim found in trap archetypes |
||
---|---|---|---|
Line 2: | Line 2: | ||
Object attributes beginning with the letter **a** . | Object attributes beginning with the letter **a** . | ||
- | Taken from the (unsorted) wholepage [[:dev:Object Fields]] . | + | Partly taken from the (unsorted) wholepage [[:dev:Object Fields]] . |
- | + | ||
- | ===== List == | + | |
- | + | ||
- | ==== above ==== | + | |
- | Type: obj * | + | |
- | + | ||
- | Meaning: | + | |
- | * pointer to the object stacked above this one. Will link items on a same spot, or in the same container. | + | |
- | + | ||
- | See also [[b#below]] | + | |
+ | ===== List of attributes == | ||
==== ac ==== | ==== ac ==== | ||
Type: sint8 | Type: sint8 | ||
- | Meaning: | + | Comment: |
- | + | ||
- | ==== 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. Should not be used much. | ||
+ | ==== animation == | ||
+ | FIXME | ||
- | ==== active_prev ==== | + | ==== anim == |
- | Type: obj * | + | FIXME |
- | Meaning: | + | See also [[m#mina]] . |
- | * 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. Should not be used much. | + | |
- | ==== animation_id ==== | + | ==== anim_full ==== |
- | Type: uint16 | + | Type: |
- | Meaning: | + | Comment: |
+ | |||
+ | Meaning: For TRANSPORT, face to use when it's full. | ||
==== anim_speed ==== | ==== anim_speed ==== | ||
Type: uint8 | Type: uint8 | ||
+ | |||
+ | Comment: Ticks between animation-frames | ||
Meaning: | Meaning: | ||
Line 45: | Line 37: | ||
See also [[l#last_anim]] | See also [[l#last_anim]] | ||
+ | ==== anim_suffix ==== | ||
+ | Type: const char | ||
+ | |||
+ | Comment: Used to determine combined animations | ||
+ | |||
+ | Meaning: NEW introduced since ? | ||
==== arch ==== | ==== arch ==== | ||
Type: archt * | Type: archt * | ||
- | Meaning: | + | Comment: Pointer to archetype |
+ | |||
+ | Meaning: On maps the first line of an object placed onto a tile. The archetype block ends by [[e#end]] . | ||
+ | |||
+ | Syntax: <code> | ||
+ | arch archetype_name | ||
+ | x 1 | ||
+ | y 1 | ||
+ | end | ||
+ | </code> | ||
See also [[o#other_arch]] | See also [[o#other_arch]] | ||
+ | ==== attack_movement ==== | ||
+ | Type: uint16 | ||
- | ==== attacked_by ==== | + | Comment: What kind of attack movement |
- | Type: obj * | + | |
Meaning: | Meaning: | ||
+ | ==== attacktype ==== | ||
+ | Type: uint32 | ||
- | ==== attacked_by_count ==== | + | Comment: Bitmask of attacks this object does |
- | Type: tag_t | + | |
Meaning: | Meaning: | ||
+ | ---- | ||
- | ==== attack_movement ==== | + | ====== Server struct obj {} object == |
+ | These are not archetype attributes, but server internal variables. \\ | ||
+ | Read more on the [[:dev:object_fields]] page. | ||
+ | |||
+ | ==== above ==== | ||
+ | Type: obj * | ||
+ | |||
+ | Comment: Pointer to the object stacked above this one. | ||
+ | |||
+ | Meaning: Will link items on a same spot, or in the same container. | ||
+ | |||
+ | See also [[b#below]] | ||
+ | |||
+ | ==== active_next ==== | ||
+ | Type: obj * | ||
+ | |||
+ | Comment: 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. | ||
+ | |||
+ | Meaning: Should not be used much. | ||
+ | |||
+ | ==== active_prev ==== | ||
+ | Type: obj * | ||
+ | |||
+ | Comment: 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. | ||
+ | |||
+ | Meaning: Should not be used much. | ||
+ | |||
+ | ==== animation_id ==== | ||
Type: uint16 | Type: uint16 | ||
+ | |||
+ | Comment: An index into the animation array | ||
Meaning: | Meaning: | ||
- | ==== attacktype ==== | + | ==== artifact ==== |
- | Type: uint32 | + | Type: sstring |
+ | |||
+ | Comment: If set, the item is the artifact with this name and the matching type. | ||
+ | |||
+ | Meaning: NEW introduced since ? | ||
+ | |||
+ | ==== attacked_by ==== | ||
+ | Type: obj * | ||
+ | |||
+ | Comment: This object start to attack us! only player & monster | ||
Meaning: | Meaning: | ||
+ | ==== attacked_by_count ==== | ||
+ | Type: tag_t | ||
+ | Comment: The tag of attacker, so we can be sure | ||
+ | Meaning: |