59 lines
1.0 KiB
C++
59 lines
1.0 KiB
C++
using namespace std;
|
|
|
|
struct LIGHT
|
|
{
|
|
GLfloat coords[4];
|
|
GLfloat color[4];
|
|
};
|
|
|
|
struct PLAYER_START
|
|
{
|
|
Vec3f coords;
|
|
Vec3f heading;
|
|
};
|
|
struct PLAYER_DEATHMATCH_START
|
|
{
|
|
Vec3f coords;
|
|
Vec3f heading;
|
|
};
|
|
struct BOT_START
|
|
{
|
|
Vec3f coords;
|
|
Vec3f heading;
|
|
string name;
|
|
};
|
|
struct GEOMETRY
|
|
{
|
|
int x;
|
|
};
|
|
struct PROJECTILE
|
|
{
|
|
Vec3f heading;
|
|
Vec3f start;
|
|
Vec3f end;
|
|
int dammage;
|
|
float creation;
|
|
|
|
};
|
|
//const PROJECTILE BULLET = {{0,0,0},{0,0,0},{0,0,0},5};
|
|
//const PROJECTILE SPIKE = {{0,0,0},{0,0,0},{0,0,0},10};
|
|
|
|
struct ENTITY
|
|
{
|
|
PLAYER_START* Player_Start;
|
|
int numPlayer_Start;
|
|
PLAYER_DEATHMATCH_START* Player_Deathmatch_Start;
|
|
int numPlayer_Deathmatch_Start;
|
|
BOT_START* Bot_Start;
|
|
int numBot_Start;
|
|
GEOMETRY* Geometry;
|
|
int numGeometry;
|
|
PROJECTILE* Projectile;
|
|
int numProjectile;
|
|
|
|
ENTITY();
|
|
|
|
};
|
|
|
|
enum ITEM_TYPE{/*all weapons go first*/WEAPON_LASERPISTOL = 1, WEAPON_SHOTGUN = 2, ITEM_BANDAGES = 4, RUNE_DAMMAGEMULTIPLIER = 8, RUNE_PROTECTION = 16, RUNE_VAMPIRE = 32, RUNE_SPEED = 64, RUNE_DOC = 128};//This semicolon got rid of 107 errors and no warnings
|