Atrinik Server  4.0
Data Structures | Macros | Typedefs
living.h File Reference

Go to the source code of this file.

Data Structures

struct  liv
 

Macros

#define STR   0
 
#define DEX   1
 
#define CON   2
 
#define INT   3
 
#define POW   4
 
#define NUM_STATS   5
 
#define NO_STAT_VAL   99
 
#define LEVEL_DAMAGE(level)   (float) ((level) > 0 ? 0.75 + (level) * 0.25 : 1.0)
 

Typedefs

typedef struct liv living
 

Detailed Description

Structures and defines related to living objects, including stats of objects.

Definition in file living.h.

Macro Definition Documentation

#define LEVEL_DAMAGE (   level)    (float) ((level) > 0 ? 0.75 + (level) * 0.25 : 1.0)

Calculates damage based on level.

Definition at line 61 of file living.h.

Typedef Documentation

typedef struct liv living

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