![]() |
Pyrogenesis HEAD
Pyrogenesis, a RTS Engine
|
#include "precompiled.h"#include "simulation2/system/Component.h"#include "ICmpObstructionManager.h"#include "ICmpPosition.h"#include "ICmpRangeManager.h"#include "simulation2/MessageTypes.h"#include "simulation2/helpers/Geometry.h"#include "simulation2/helpers/Grid.h"#include "simulation2/helpers/Rasterize.h"#include "simulation2/helpers/Render.h"#include "simulation2/helpers/Spatial.h"#include "simulation2/serialization/SerializedTypes.h"#include "graphics/Overlay.h"#include "maths/MathUtil.h"#include "ps/Profile.h"#include "renderer/Scene.h"#include "ps/CLogger.h"
Classes | |
| struct | anonymous_namespace{CCmpObstructionManager.cpp}::UnitShape |
| Internal representation of axis-aligned circular shapes for moving units. More... | |
| struct | anonymous_namespace{CCmpObstructionManager.cpp}::StaticShape |
| Internal representation of arbitrary-rotation static square shapes for buildings. More... | |
| struct | SerializeHelper< UnitShape > |
| Serialization helper template for UnitShape. More... | |
| struct | SerializeHelper< StaticShape > |
| Serialization helper template for StaticShape. More... | |
| class | CCmpObstructionManager |
Namespaces | |
| namespace | anonymous_namespace{CCmpObstructionManager.cpp} |
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) |
Variables | |
| constexpr entity_pos_t | anonymous_namespace{CCmpObstructionManager.cpp}::OBSTRUCTION_SUBDIVISION_SIZE = entity_pos_t::FromInt(32) |
| Size of each obstruction subdivision square. More... | |
| #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) |