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

Public Member Functions | Public Attributes | List of all members
CBuildRestrictionHasUnit Class Reference

#include <unittype.h>

Inheritance diagram for CBuildRestrictionHasUnit:
CBuildRestriction

Public Member Functions

 CBuildRestrictionHasUnit ()
 
virtual ~CBuildRestrictionHasUnit ()
 
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

int Count
 
DistanceTypeType CountType
 
std::string RestrictTypeName
 
CUnitTypeRestrictType
 
std::string RestrictTypeOwner
 

Constructor & Destructor Documentation

◆ CBuildRestrictionHasUnit()

CBuildRestrictionHasUnit::CBuildRestrictionHasUnit ( )
inline

◆ ~CBuildRestrictionHasUnit()

virtual CBuildRestrictionHasUnit::~CBuildRestrictionHasUnit ( )
inlinevirtual

Member Function Documentation

◆ Check()

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

Check HasUnit Restriction

Implements CBuildRestriction.

◆ Init()

virtual void CBuildRestrictionHasUnit::Init ( )
inlinevirtual

Reimplemented from CBuildRestriction.

Member Data Documentation

◆ Count

int CBuildRestrictionHasUnit::Count

◆ CountType

DistanceTypeType CBuildRestrictionHasUnit::CountType

◆ RestrictType

CUnitType* CBuildRestrictionHasUnit::RestrictType

◆ RestrictTypeName

std::string CBuildRestrictionHasUnit::RestrictTypeName

◆ RestrictTypeOwner

std::string CBuildRestrictionHasUnit::RestrictTypeOwner

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.