Atrinik Server 2.5
Data Structures | Defines | Typedefs | Variables
include/material.h File Reference

Go to the source code of this file.

Data Structures

struct  materialtype
struct  _material_real_struct

Defines

#define NROFMATERIALS   13
#define NROFMATERIALS_REAL   64
#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_real_struct 
material_real_struct

Variables

materialtype materials [NROFMATERIALS]
material_real_struct material_real [NROFMATERIALS *NROFMATERIALS_REAL+1]

Detailed Description

Defines are needed by living.h, so they must be loaded early.

Definition in file material.h.


Define Documentation

#define M_START_ADAMANT   8 * 64 + 1

513 - 576

Definition at line 91 of file material.h.

#define M_START_BONE   11 * 64 + 1

705 - 768

Definition at line 97 of file material.h.

#define M_START_CLOTH   7 * 64 + 1

449 - 512

Definition at line 89 of file material.h.

#define M_START_GLASS   2 * 64 + 1

129 - 192

Definition at line 79 of file material.h.

#define M_START_ICE   12 * 64 + 1

769 - 832

Definition at line 99 of file material.h.

#define M_START_IRON   1 * 64 + 1

65 - 128

Definition at line 77 of file material.h.

#define M_START_LEATHER   3 * 64 + 1

193 - 256

Definition at line 81 of file material.h.

#define M_START_LIQUID   9 * 64 + 1

577 - 640

Definition at line 93 of file material.h.

#define M_START_ORGANIC   5 * 64 + 1

321 - 384

Definition at line 85 of file material.h.

#define M_START_PAPER   0 * 64 + 1

1-64

Definition at line 75 of file material.h.

#define M_START_SOFT_METAL   10 * 64 + 1

641 - 704

Definition at line 95 of file material.h.

#define M_START_STONE   6 * 64 + 1

385 - 448

Definition at line 87 of file material.h.

#define M_START_WOOD   4 * 64 + 1

257 - 320

Definition at line 83 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.


Variable Documentation

material_real_struct material_real[NROFMATERIALS *NROFMATERIALS_REAL+1]

Real material types. This array is initialized by init_materials().

Definition at line 167 of file object.c.

materialtype materials[NROFMATERIALS]

Material types.

Definition at line 145 of file object.c.