____ _ __
/ __ )____ _____ | | / /___ ___________
/ __ / __ \/ ___/ | | /| / / __ `/ ___/ ___/
/ /_/ / /_/ (__ ) | |/ |/ / /_/ / / (__ )
/_____/\____/____/ |__/|__/\__,_/_/ /____/
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 | |
| CBuildRestrictionAddOn () | |
| virtual | ~CBuildRestrictionAddOn () |
| virtual void | Init () |
| virtual bool | Check (const CUnitType *type, int x, int y, CUnit *&ontoptarget) const |
Public Attributes | |
| int | OffsetX |
| offset from the main building to place this | |
| int | OffsetY |
| offset from the main building to place this | |
| std::string | ParentName |
| building that is unit is an addon too. | |
| CUnitType * | Parent |
| building that is unit is an addon too. | |
Definition at line 540 of file unittype.h.
| CBuildRestrictionAddOn::CBuildRestrictionAddOn | ( | ) | [inline] |
Definition at line 542 of file unittype.h.
| virtual CBuildRestrictionAddOn::~CBuildRestrictionAddOn | ( | ) | [inline, virtual] |
Definition at line 543 of file unittype.h.
| virtual void CBuildRestrictionAddOn::Init | ( | void | ) | [inline, virtual] |
Reimplemented from CBuildRestriction.
Definition at line 544 of file unittype.h.
References Parent, ParentName, and UnitTypeByIdent().
| bool CBuildRestrictionAddOn::Check | ( | const CUnitType * | type, | |
| int | x, | |||
| int | y, | |||
| CUnit *& | ontoptarget | |||
| ) | const [virtual] |
Check AddOn Restriction
Implements CBuildRestriction.
Definition at line 176 of file build.cpp.
References CMap::Info, Map, CMapInfo::MapHeight, CMapInfo::MapWidth, OffsetX, OffsetY, Parent, CUnitCache::Select(), UnitCache, and UnitMax.
offset from the main building to place this
Definition at line 547 of file unittype.h.
Referenced by Check(), and ParseBuildingRules().
offset from the main building to place this
Definition at line 548 of file unittype.h.
Referenced by Check(), and ParseBuildingRules().
| std::string CBuildRestrictionAddOn::ParentName |
building that is unit is an addon too.
Definition at line 549 of file unittype.h.
Referenced by Init(), and ParseBuildingRules().
1.5.6