Atrinik Server  4.0
Data Structures | Macros | Typedefs | Functions | Variables
material.h File Reference

Go to the source code of this file.

Data Structures

struct  material
 
struct  material_real
 

Macros

#define NROFMATERIALS   13
 
#define NROFMATERIALS_REAL   64
 
#define NUM_MATERIALS_REAL   NROFMATERIALS * NROFMATERIALS_REAL + 1
 
#define M_NONE   0
 
#define M_PAPER   1
 
#define M_IRON   2
 
#define M_GLASS   4
 
#define M_LEATHER   8
 
#define M_WOOD   16
 
#define M_ORGANIC   32
 
#define M_STONE   64
 
#define M_CLOTH   128
 
#define M_ADAMANT   256
 
#define M_LIQUID   512
 
#define M_SOFT_METAL   1024
 
#define M_BONE   2048
 
#define M_ICE   4096
 
#define M_START_PAPER   0 * 64 + 1
 
#define M_START_IRON   1 * 64 + 1
 
#define M_START_GLASS   2 * 64 + 1
 
#define M_START_LEATHER   3 * 64 + 1
 
#define M_START_WOOD   4 * 64 + 1
 
#define M_START_ORGANIC   5 * 64 + 1
 
#define M_START_STONE   6 * 64 + 1
 
#define M_START_CLOTH   7 * 64 + 1
 
#define M_START_ADAMANT   8 * 64 + 1
 
#define M_START_LIQUID   9 * 64 + 1
 
#define M_START_SOFT_METAL   10 * 64 + 1
 
#define M_START_BONE   11 * 64 + 1
 
#define M_START_ICE   12 * 64 + 1
 

Typedefs

typedef struct material material_t
 
typedef struct material_real material_real_t
 

Functions

void material_init (void)
 

Variables

material_t materials [NROFMATERIALS]
 
material_real_t materials_real [NUM_MATERIALS_REAL]
 

Detailed Description

Material-related defines and functions.

Definition in file material.h.

Macro Definition Documentation

#define M_START_ADAMANT   8 * 64 + 1

513 - 576

Definition at line 92 of file material.h.

#define M_START_BONE   11 * 64 + 1

705 - 768

Definition at line 98 of file material.h.

#define M_START_CLOTH   7 * 64 + 1

449 - 512

Definition at line 90 of file material.h.

#define M_START_GLASS   2 * 64 + 1

129 - 192

Definition at line 80 of file material.h.

#define M_START_ICE   12 * 64 + 1

769 - 832

Definition at line 100 of file material.h.

#define M_START_IRON   1 * 64 + 1

65 - 128

Definition at line 78 of file material.h.

#define M_START_LEATHER   3 * 64 + 1

193 - 256

Definition at line 82 of file material.h.

#define M_START_LIQUID   9 * 64 + 1

577 - 640

Definition at line 94 of file material.h.

#define M_START_ORGANIC   5 * 64 + 1

321 - 384

Definition at line 86 of file material.h.

#define M_START_PAPER   0 * 64 + 1

1-64

Definition at line 76 of file material.h.

#define M_START_SOFT_METAL   10 * 64 + 1

641 - 704

Definition at line 96 of file material.h.

#define M_START_STONE   6 * 64 + 1

385 - 448

Definition at line 88 of file material.h.

#define M_START_WOOD   4 * 64 + 1

257 - 320

Definition at line 84 of file material.h.

#define NROFMATERIALS   13

Number of materials

Definition at line 34 of file material.h.

#define NROFMATERIALS_REAL   64

Number of materials real

Definition at line 37 of file material.h.

Typedef Documentation

A real material.

typedef struct material material_t

A single material.

Function Documentation

void material_init ( void  )

Initialize materials from file.

Definition at line 62 of file material.c.