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

       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"

CBuildRestrictionOnTop Class Reference

#include <unittype.h>

Inheritance diagram for CBuildRestrictionOnTop:

CBuildRestriction

List of all members.

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.
CUnitTypeParent
 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.


Detailed Description

Definition at line 553 of file unittype.h.


Constructor & Destructor Documentation

CBuildRestrictionOnTop::CBuildRestrictionOnTop (  )  [inline]

Definition at line 555 of file unittype.h.

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

Definition at line 556 of file unittype.h.


Member Function Documentation

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.


Member Data Documentation

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


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