_________ __                 __
        /   _____//  |_____________ _/  |______     ____  __ __  ______
        \_____  \\   __\_  __ \__  \\   __\__  \   / ___\|  |  \/  ___/
        /        \|  |  |  | \// __ \|  |  / __ \_/ /_/  >  |  /\___ \
       /_______  /|__|  |__|  (____  /__| (____  /\___  /|____//____  >
               \/                  \/          \//_____/            \/
    ______________________                           ______________________
                          T H E   W A R   B E G I N S
                   Stratagus - A free fantasy real time strategy game engine

Classes | Public Member Functions | Public Attributes | List of all members
CBuildRestrictionOnTop Class Reference

#include <unittype.h>

Inheritance diagram for CBuildRestrictionOnTop:
CBuildRestriction

Public Member Functions

 CBuildRestrictionOnTop ()
 
virtual ~CBuildRestrictionOnTop ()
 
virtual void Init ()
 
build.cpp - The units.
virtual bool Check (const CUnit *builder, const CUnitType &type, const Vec2i &pos, CUnit *&ontoptarget) const
 
- Public Member Functions inherited from CBuildRestriction
virtual ~CBuildRestriction ()
 

Public Attributes

std::string ParentName
 
CUnitTypeParent
 building that is unit is an addon too. More...
 
int ReplaceOnDie: 1
 building that is unit is an addon too. More...
 
int ReplaceOnBuild: 1
 recreate the parent on destruction More...
 

Constructor & Destructor Documentation

◆ CBuildRestrictionOnTop()

CBuildRestrictionOnTop::CBuildRestrictionOnTop ( )
inline

◆ ~CBuildRestrictionOnTop()

virtual CBuildRestrictionOnTop::~CBuildRestrictionOnTop ( )
inlinevirtual

Member Function Documentation

◆ Check()

bool CBuildRestrictionOnTop::Check ( const CUnit builder,
const CUnitType type,
const Vec2i pos,
CUnit *&  ontoptarget 
) const
virtual

Implements CBuildRestriction.

◆ Init()

virtual void CBuildRestrictionOnTop::Init ( )
inlinevirtual

Reimplemented from CBuildRestriction.

Member Data Documentation

◆ Parent

CUnitType* CBuildRestrictionOnTop::Parent

building that is unit is an addon too.

◆ ParentName

std::string CBuildRestrictionOnTop::ParentName

◆ ReplaceOnBuild

int CBuildRestrictionOnTop::ReplaceOnBuild

recreate the parent on destruction

◆ ReplaceOnDie

int CBuildRestrictionOnTop::ReplaceOnDie

building that is unit is an addon too.


The documentation for this class was generated from the following files:
(C) Copyright 1998-2012 by The Stratagus Project under the GNU General Public License.
All trademarks and copyrights on this page are owned by their respective owners.