Atrinik Server  4.0
Data Fields
liv Struct Reference

#include <living.h>

Data Fields

int64_t exp
 
int32_t hp
 
int32_t maxhp
 
int16_t sp
 
int16_t maxsp
 
int16_t food
 
int16_t dam
 
int16_t wc
 
int16_t ac
 
uint8_t wc_range
 
int8_t Str
 
int8_t Dex
 
int8_t Con
 
int8_t Int
 
int8_t Pow
 

Detailed Description

Mostly used by "alive" objects, but also by other objects like gates, buttons, waypoints and a number of other objects.

Definition at line 67 of file living.h.

Field Documentation

liv::ac

Armour class.

See Also
liv::ac Uses

Definition at line 93 of file living.h.

liv::Con

Constitution.

See Also
liv::Con Uses

Definition at line 109 of file living.h.

liv::dam

How much damage this object does when hitting.

See Also
liv::dam Uses

Definition at line 87 of file living.h.

liv::Dex

Dexterity.

See Also
liv::Dex Uses

Definition at line 106 of file living.h.

liv::exp

Experience.

See Also
liv::exp Uses

Definition at line 69 of file living.h.

liv::food

How much food in stomach. 0 = starved.

See Also
liv::food Uses

Definition at line 84 of file living.h.

liv::hp

Hit points.

See Also
liv::hp Uses

Definition at line 72 of file living.h.

int8_t liv::Int

Intelligence.

Definition at line 112 of file living.h.

liv::maxhp

Max hit points.

See Also
liv::maxhp Uses

Definition at line 75 of file living.h.

liv::maxsp

Max spell points.

See Also
liv::maxsp Uses

Definition at line 81 of file living.h.

liv::Pow

Power.

See Also
liv::Pow Uses

Definition at line 115 of file living.h.

liv::sp

Spell points. Used to cast mage spells.

See Also
liv::sp Uses

Definition at line 78 of file living.h.

int8_t liv::Str

Strength.

Definition at line 103 of file living.h.

liv::wc

Weapon class.

See Also
liv::wc Uses

Definition at line 90 of file living.h.

liv::wc_range

Random value range we add to wc value of attacker: wc + (random() % wc_range). If it's higher than defender's AC then we can hit our enemy.

See Also
liv::wc_range Uses

Definition at line 100 of file living.h.


The documentation for this struct was generated from the following files: