____ _ __
/ __ )____ _____ | | / /___ ___________
/ __ / __ \/ ___/ | | /| / / __ `/ ___/ ___/
/ /_/ / /_/ (__ ) | |/ |/ / /_/ / / (__ )
/_____/\____/____/ |__/|__/\__,_/_/ /____/
A futuristic real-time strategy game.
This file is part of Bos Wars.
(C) Copyright 2001-2007 by the Bos Wars and Stratagus Project.
Distributed under the "GNU General Public License"#include <unittype.h>

Public Member Functions | |
| CBuildRestrictionOnTop () | |
| virtual | ~CBuildRestrictionOnTop () |
| virtual void | Init () |
| virtual bool | Check (const CUnitType *type, int x, int y, CUnit *&ontoptarget) const |
Public Attributes | |
| std::string | ParentName |
| building that is unit is an addon too. | |
| CUnitType * | Parent |
| building that is unit is an addon too. | |
| int | ReplaceOnDie |
| recreate the parent on destruction | |
| int | ReplaceOnBuild |
| remove the parent, or just build over it. | |
Definition at line 553 of file unittype.h.
| CBuildRestrictionOnTop::CBuildRestrictionOnTop | ( | ) | [inline] |
Definition at line 555 of file unittype.h.
| virtual CBuildRestrictionOnTop::~CBuildRestrictionOnTop | ( | ) | [inline, virtual] |
Definition at line 556 of file unittype.h.
| virtual void CBuildRestrictionOnTop::Init | ( | void | ) | [inline, virtual] |
Reimplemented from CBuildRestriction.
Definition at line 557 of file unittype.h.
References Parent, ParentName, and UnitTypeByIdent().
| bool CBuildRestrictionOnTop::Check | ( | const CUnitType * | type, | |
| int | x, | |||
| int | y, | |||
| CUnit *& | ontoptarget | |||
| ) | const [virtual] |
Check OnTop Restriction
Implements CBuildRestriction.
Definition at line 203 of file build.cpp.
References Parent, CUnitCache::Select(), UnitActionBuilt, UnitActionDie, UnitCache, and UnitMax.
| std::string CBuildRestrictionOnTop::ParentName |
building that is unit is an addon too.
Definition at line 560 of file unittype.h.
Referenced by Init(), and ParseBuildingRules().
building that is unit is an addon too.
Definition at line 561 of file unittype.h.
Referenced by Check(), EditorActionPlaceUnit(), Init(), OnTopDetails(), and UnitLost().
recreate the parent on destruction
Definition at line 562 of file unittype.h.
Referenced by ParseBuildingRules(), and UnitLost().
remove the parent, or just build over it.
Definition at line 563 of file unittype.h.
Referenced by EditorActionPlaceUnit(), ParseBuildingRules(), and StartBuilding().
1.5.6