D:/Projects/dark-oberon.svn/game/sources/engine/system.h File Reference


Detailed Description

Common includes and defines.

Author:
Peter Knut
Date:
2005
Version:
1.0 - Initial.

#include "framework/system.h"

Defines

#define NOH_GAME   string("/game")
#define NOH_PROFILES   (NOH_GAME + "/profiles")
#define NOH_GUIS   (NOH_GAME + "/guis")
#define NOH_LEVELS   (NOH_GAME + "/levels")
#define NOH_MAPS   (NOH_GAME + "/maps")
#define NOH_SCHEMES   (NOH_GAME + "/schemes")
#define NOH_RACES   (NOH_GAME + "/races")
#define NOH_SEL_RENDERERS   (NOH_GAME + "/selrenderers")
#define NOH_ON_SCREEN_TEXT   (NOH_GAME + "/ost")
#define NOH_SELECTION   (NOH_GAME + "/selection")
#define NOH_FILE_SERVER   (NOH_SERVERS + "/file")
#define NOH_SCRIPT_SERVER   (NOH_SERVERS + "/script")
#define PROJECTION_WIDTH   1280.0f
#define PROJECTION_HEIGHT   960.0f
#define ISO_SCENE_H_COEF   20.0f
#define ISO_SCENE_V_COEF   10.0f
#define MAX_TEXTURE_MAPELS   (mapel_t(256.0f / (ISO_SCENE_V_COEF * 2)))
 Max. size of texture in mapels. [mapels].
#define SEGMENTS_SHIFT   3
 [mapels]
#define WARFOG_BOUNDARY   10
 Additional warfog boundary. Necessary to cover buildings at the edge of the map. Must be higher or equal than SEGMENTS_SHIFT. [mapels].
#define COLOR_DEBUG   0.3f, 0.3f, 0.3f
#define COLOR_INFO   0.7f, 0.7f, 0.7f
#define COLOR_WARNING   1.0f, 0.5f, 0.0f
#define COLOR_ERROR   1.0f, 0.1f, 0.0f
#define COLOR_CRITICAL   1.0f, 0.1f, 0.0f
#define COLOR_MY_UNIT   0.5f, 0.9f, 0.5f
#define COLOR_ENEMY_UNIT   1.0f, 0.5f, 0.5f
#define COLOR_HYPER_UNIT   0.8f, 0.8f, 0.5f
#define COLOR_LIFE1   0.0f, 1.0f, 0.0f
#define COLOR_LIFE2   1.0f, 1.0f, 0.0f
#define COLOR_LIFE3   1.0f, 0.0f, 0.0f
#define COLOR_HIDING   1.0f, 1.0f, 1.0f
#define COLOR_FILTER_GHOST   0.6f, 0.6f, 0.6f, 1.0f
#define LIFE_LIMIT1   0.7f
 Limit for COLOR_LIFE1.
#define LIFE_LIMIT2   0.3f
 Limit for COLOR_LIFE2.

Typedefs

typedef byte_t mapel_t


Define Documentation

#define COLOR_CRITICAL   1.0f, 0.1f, 0.0f

#define COLOR_DEBUG   0.3f, 0.3f, 0.3f

#define COLOR_ENEMY_UNIT   1.0f, 0.5f, 0.5f

#define COLOR_ERROR   1.0f, 0.1f, 0.0f

#define COLOR_FILTER_GHOST   0.6f, 0.6f, 0.6f, 1.0f

#define COLOR_HIDING   1.0f, 1.0f, 1.0f

#define COLOR_HYPER_UNIT   0.8f, 0.8f, 0.5f

#define COLOR_INFO   0.7f, 0.7f, 0.7f

#define COLOR_LIFE1   0.0f, 1.0f, 0.0f

#define COLOR_LIFE2   1.0f, 1.0f, 0.0f

#define COLOR_LIFE3   1.0f, 0.0f, 0.0f

#define COLOR_MY_UNIT   0.5f, 0.9f, 0.5f

#define COLOR_WARNING   1.0f, 0.5f, 0.0f

#define ISO_SCENE_H_COEF   20.0f

#define ISO_SCENE_V_COEF   10.0f

#define LIFE_LIMIT1   0.7f

Limit for COLOR_LIFE1.

#define LIFE_LIMIT2   0.3f

Limit for COLOR_LIFE2.

#define MAX_TEXTURE_MAPELS   (mapel_t(256.0f / (ISO_SCENE_V_COEF * 2)))

Max. size of texture in mapels. [mapels].

#define NOH_FILE_SERVER   (NOH_SERVERS + "/file")

#define NOH_GAME   string("/game")

#define NOH_GUIS   (NOH_GAME + "/guis")

#define NOH_LEVELS   (NOH_GAME + "/levels")

#define NOH_MAPS   (NOH_GAME + "/maps")

#define NOH_ON_SCREEN_TEXT   (NOH_GAME + "/ost")

#define NOH_PROFILES   (NOH_GAME + "/profiles")

#define NOH_RACES   (NOH_GAME + "/races")

#define NOH_SCHEMES   (NOH_GAME + "/schemes")

#define NOH_SCRIPT_SERVER   (NOH_SERVERS + "/script")

#define NOH_SEL_RENDERERS   (NOH_GAME + "/selrenderers")

#define NOH_SELECTION   (NOH_GAME + "/selection")

#define PROJECTION_HEIGHT   960.0f

#define PROJECTION_WIDTH   1280.0f

#define SEGMENTS_SHIFT   3

[mapels]

#define WARFOG_BOUNDARY   10

Additional warfog boundary. Necessary to cover buildings at the edge of the map. Must be higher or equal than SEGMENTS_SHIFT. [mapels].


Typedef Documentation

typedef byte_t mapel_t


Generated on Sat Oct 20 14:47:29 2007 for Dark Oberon by  doxygen 1.5.3