Pyrogenesis
trunk
|
#include "precompiled.h"
#include "simulation2/system/Component.h"
#include "ICmpObstructionManager.h"
#include "ICmpTerrain.h"
#include "simulation2/MessageTypes.h"
#include "simulation2/helpers/Geometry.h"
#include "simulation2/helpers/Rasterize.h"
#include "simulation2/helpers/Render.h"
#include "simulation2/helpers/Spatial.h"
#include "simulation2/serialization/SerializeTemplates.h"
#include "graphics/Overlay.h"
#include "graphics/Terrain.h"
#include "maths/MathUtil.h"
#include "ps/Profile.h"
#include "renderer/Scene.h"
#include "ps/CLogger.h"
Classes | |
struct | UnitShape |
Internal representation of axis-aligned circular shapes for moving units. More... | |
struct | StaticShape |
Internal representation of arbitrary-rotation static square shapes for buildings. More... | |
struct | SerializeUnitShape |
Serialization helper template for UnitShape. More... | |
struct | SerializeStaticShape |
Serialization helper template for StaticShape. More... | |
class | CCmpObstructionManager |
Macros | |
#define | TAG_IS_VALID(tag) ((tag).valid()) |
#define | TAG_IS_UNIT(tag) (((tag).n & 1) == 0) |
#define | TAG_IS_STATIC(tag) (((tag).n & 1) == 1) |
#define | UNIT_INDEX_TO_TAG(idx) tag_t(((idx) << 1) | 0) |
#define | STATIC_INDEX_TO_TAG(idx) tag_t(((idx) << 1) | 1) |
#define | TAG_TO_INDEX(tag) ((tag).n >> 1) |
#define STATIC_INDEX_TO_TAG | ( | idx | ) | tag_t(((idx) << 1) | 1) |
#define TAG_IS_STATIC | ( | tag | ) | (((tag).n & 1) == 1) |
#define TAG_IS_UNIT | ( | tag | ) | (((tag).n & 1) == 0) |
#define TAG_IS_VALID | ( | tag | ) | ((tag).valid()) |
#define TAG_TO_INDEX | ( | tag | ) | ((tag).n >> 1) |
#define UNIT_INDEX_TO_TAG | ( | idx | ) | tag_t(((idx) << 1) | 0) |