____                _       __
    / __ )____  _____   | |     / /___ ___________
   / __  / __ \/ ___/   | | /| / / __ `/ ___/ ___/
  / /_/ / /_/ (__  )    | |/ |/ / /_/ / /  (__  )
 /_____/\____/____/     |__/|__/\__,_/_/  /____/

       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"

CBuildRestrictionAddOn Class Reference

#include <unittype.h>

Inheritance diagram for CBuildRestrictionAddOn:

CBuildRestriction

List of all members.

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.
CUnitTypeParent
 building that is unit is an addon too.


Detailed Description

Definition at line 540 of file unittype.h.


Constructor & Destructor Documentation

CBuildRestrictionAddOn::CBuildRestrictionAddOn (  )  [inline]

Definition at line 542 of file unittype.h.

virtual CBuildRestrictionAddOn::~CBuildRestrictionAddOn (  )  [inline, virtual]

Definition at line 543 of file unittype.h.


Member Function Documentation

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.


Member Data Documentation

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().

building that is unit is an addon too.

Definition at line 549 of file unittype.h.

Referenced by Init(), and ParseBuildingRules().

building that is unit is an addon too.

Definition at line 550 of file unittype.h.

Referenced by Check(), and Init().


The documentation for this class was generated from the following files:

Generated on Sat Feb 21 00:28:23 2009 for Bos Wars by  doxygen 1.5.6