_________ __ __ / _____// |_____________ _/ |______ ____ __ __ ______ \_____ \\ __\_ __ \__ \\ __\__ \ / ___\| | \/ ___/ / \| | | | \// __ \| | / __ \_/ /_/ > | /\___ \ /_______ /|__| |__| (____ /__| (____ /\___ /|____//____ > \/ \/ \//_____/ \/ ______________________ ______________________ T H E W A R B E G I N S Stratagus - A free fantasy real time strategy game engine
#include "stratagus.h"
#include "unittype.h"
#include "actions.h"
#include "map.h"
#include "player.h"
#include "unit.h"
#include "unit_find.h"
Classes | |
class | AliveConstructedAndSameTypeAs |
Functions | |
build.cpp - The units. | |
CBuildRestrictionOnTop * | OnTopDetails (const CUnit &unit, const CUnitType *parent) |
Return the rule used to build this building. More... | |
CUnit * | CanBuildHere (const CUnit *unit, const CUnitType &type, const Vec2i &pos) |
bool | CanBuildOn (const Vec2i &pos, int mask) |
CUnit * | CanBuildUnitType (const CUnit *unit, const CUnitType &type, const Vec2i &pos, int real) |
FIXME: more docu. More... | |
Can build unit here. Hall too near to goldmine. Refinery or shipyard too near to oil patch.
unit | Unit doing the building |
type | unit-type to be checked. |
pos | Map position. |
bool CanBuildOn | ( | const Vec2i & | pos, |
int | mask | ||
) |
Can build on this point.
pos | tile map position. |
mask | terrain mask |
FIXME: more docu.
Can build unit-type at this point.
unit | Worker that want to build the building or NULL. |
type | Building unit-type. |
pos | tile map position. |
real | Really build, or just placement |
CBuildRestrictionOnTop* OnTopDetails | ( | const CUnit & | unit, |
const CUnitType * | parent | ||
) |
Return the rule used to build this building.
Find the building restriction that gives me this unit built on top Allows you to define how the restriction is effecting the build
unit | the unit that is "OnTop" |
parent | the parent unit if known. (guess otherwise) |