OctaCore/src/game/game.hh

56 lines
1.1 KiB
C++
Raw Normal View History

2020-04-15 18:39:17 +02:00
#ifndef __GAME_H__
#define __GAME_H__
2020-04-16 20:28:40 +02:00
#include "cube.hh"
2020-04-15 18:39:17 +02:00
// console message types
enum
{
CON_CHAT = 1<<8
2020-04-15 18:39:17 +02:00
};
enum // static entity types
{
NOTUSED = ET_EMPTY, // entity slot not in use in map
LIGHT = ET_LIGHT, // lightsource, attr1 = radius, attr2 = intensity
MAPMODEL = ET_MAPMODEL, // attr1 = idx, attr2 = yaw, attr3 = pitch, attr4 = roll, attr5 = scale
PLAYERSTART, // attr1 = angle, attr2 = team
ENVMAP = ET_ENVMAP, // attr1 = radius
PARTICLES = ET_PARTICLES,
MAPSOUND = ET_SOUND,
SPOTLIGHT = ET_SPOTLIGHT,
DECAL = ET_DECAL,
MAXENTTYPES,
I_FIRST = 0,
I_LAST = -1
};
#define MAXNAMELEN 15
namespace entities
{
extern vector<extentity *> ents;
extern void preloadentities();
}
namespace game
{
// game
extern string clientmap;
2020-04-25 01:19:04 +02:00
extern dynent *player1;
2020-04-15 18:39:17 +02:00
// client
extern bool connected;
2020-04-15 18:39:17 +02:00
// render
extern void saveragdoll(dynent *d);
2020-04-15 18:39:17 +02:00
extern void clearragdolls();
extern void moveragdolls();
}
#endif