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

       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"

CUnitType Class Reference

#include <unittype.h>

List of all members.

Public Member Functions

 CUnitType ()
 ~CUnitType ()
void SetEnergyProductionRate (int v)
int GetEnergyProductionRate ()
void SetMagmaProductionRate (int v)
int GetMagmaProductionRate ()
void SetMaxEnergyUtilizationRate (int v)
int GetMaxEnergyUtilizationRate ()
void SetMaxMagmaUtilizationRate (int v)
int GetMaxMagmaUtilizationRate ()
void SetEnergyValue (int v)
int GetEnergyValue ()
void SetMagmaValue (int v)
int GetMagmaValue ()
void SetEnergyStorageCapacity (int v)
int GetEnergyStorageCapacity ()
void SetMagmaStorageCapacity (int v)
int GetMagmaStorageCapacity ()

Public Attributes

std::string Ident
 Identifier.
std::string Name
 Pretty name shown from the engine.
int Slot
 Type as number.
std::string File
 Sprite files.
std::string ShadowFile
 Shadow file.
int Width
 Sprite width.
int Height
 Sprite height.
int OffsetX
 Sprite horizontal offset.
int OffsetY
 Sprite vertical offset.
int DrawLevel
 Level to Draw UnitType at.
int ShadowWidth
 Shadow sprite width.
int ShadowHeight
 Shadow sprite height.
int ShadowOffsetX
 Shadow horizontal offset.
int ShadowOffsetY
 Shadow vertical offset.
CAnimationsAnimations
 Animation scripts.
int StillFrame
 Still frame.
IconConfig Icon
 Icon to display for this unit.
MissileConfig Missile
 Missile weapon.
MissileConfig Explosion
 Missile for unit explosion.
LuaCallbackDeathExplosion
std::string CorpseName
 Corpse type name.
CUnitTypeCorpseType
 Corpse unit-type.
CConstructionConstruction
 What is shown in construction phase.
int RepairHP
 Amount of HP per repair.
int TileWidth
 Tile size on map width.
int TileHeight
 Tile size on map height.
int BoxWidth
 Selected box size width.
int BoxHeight
 Selected box size height.
int NumDirections
 Number of directions unit can face.
int MinAttackRange
 Minimal attack range.
int ReactRangeComputer
 Reacts on enemy for computer.
int ReactRangePerson
 Reacts on enemy for person player.
int Priority
 Priority value / AI Treatment.
int BurnPercent
 Burning percent.
int BurnDamageRate
 HP burn rate per sec.
int RepairRange
 Units repair range.
char * CanCastSpell
 Unit is able to use spells.
char * AutoCastActive
 Default value for autocast.
bool CanTransport
 Can transport units with this flag.
int MaxOnBoard
 originally only visual effect, we do more with this!
UnitTypeType UnitType
 Land / fly / naval.
int DecayRate
 Decay rate in 1/6 seconds.
int AnnoyComputerFactor
 How much this annoys the computer.
int MouseAction
 Right click action.
int Points
 How many points you get for unit.
int CanTarget
 Which units can it attack.
unsigned Flip: 1
 Flip image when facing left.
unsigned Revealer: 1
 reveal the fog of war
unsigned LandUnit: 1
 Land animated.
unsigned AirUnit: 1
 Air animated.
unsigned SeaUnit: 1
 Sea animated.
unsigned ExplodeWhenKilled: 1
 Death explosion animated.
unsigned Building: 1
 Building.
unsigned VisibleUnderFog: 1
 Unit is visible under fog of war.
unsigned Coward: 1
 Unit will only attack if instructed.
unsigned AttackFromTransporter: 1
 Can attack from transporter.
unsigned Vanishes: 1
 Corpes & destroyed places.
unsigned GroundAttack: 1
 Can do command ground attack.
unsigned ShoreBuilding: 1
 Building must be build on coast.
unsigned CanAttack: 1
 Unit can attack.
unsigned BuilderOutside: 1
 The builder stays outside during the build.
unsigned BuilderLost: 1
 The builder is lost after the build.
unsigned CanHarvestFrom: 1
 Resource can be harvested.
unsigned Harvester: 1
 unit is a resource harvester.
unsigned Neutral: 1
 Unit is neutral, used by the editor.
unsigned SelectableByRectangle: 1
 Selectable with mouse rectangle.
unsigned IsNotSelectable: 1
 Unit should not be selected during game.
unsigned Decoration: 1
 Unit is a decoration (act as tile).
unsigned Indestructible: 1
 Unit is indestructible (take no damage).
unsigned Organic: 1
 Can be transported or healed by a medic.
CVariableVariable
 Array of user defined variables.
std::vector< CBuildRestriction * > BuildingRules
 Rules list for building a building.
SDL_Color NeutralMinimapColorRGB
 Minimap Color for Neutral Units.
CUnitSound Sound
 Sounds for events.
int ProductionRate [MaxCosts]
 Rate that resources are produced.
int MaxUtilizationRate [MaxCosts]
 Max resource rate that can be used.
int ProductionCosts [MaxCosts]
 Total cost to produce this type.
int StorageCapacity [MaxCosts]
 Storage capacity of resources.
unsigned ProductionEfficiency: 8
 Production efficiency.
unsigned FieldFlags
 Unit map field flags.
unsigned MovementMask
 Unit check this map flags for move.
CUnitStats Stats [PlayerMax]
 Unit status for each player.
CPlayerColorGraphicSprite
 Sprite images.
CGraphicShadowSprite
 Shadow sprite image.


Detailed Description

#include "unittype.h"

This class contains the information that is shared between all units of the same type and determins if a unit is a building, a person, ...

The unit-type class members:

CUnitType::Ident

Unique identifier of the unit-type, used to reference it in config files and during startup. As convention they start with "unit-" fe. "unit-farm".

Note:
Don't use this member in game, use instead the pointer to this structure. See UnitTypeByIdent().
CUnitType::Name

Pretty name shown by the engine. The name should be shorter than 17 characters and no word can be longer than 8 characters.

CUnitType::File

Path file name of the sprite file.

CUnitType::ShadowFile

Path file name of shadow sprite file.

CUnitType::DrawLevel

The Level/Order to draw this type of unit in. 0-255 usually.

CUnitType::Width CUnitType::Height

Size of a sprite frame in pixels. All frames of a sprite have the same size. Also all sprites (tilesets) must have the same size.

CUnitType::ShadowWidth CUnitType::ShadowHeight

Size of a shadow sprite frame in pixels. All frames of a sprite have the same size. Also all sprites (tilesets) must have the same size.

CUnitType::ShadowOffsetX CUnitType::ShadowOffsetY

Vertical offset to draw the shadow in pixels.

CUnitType::Animations

Animation scripts for the different actions. Currently the animations still, move, attack and die are supported.

See also:
CAnimations

CAnimation

CUnitType::Icon

Icon to display for this unit-type. Contains configuration and run time variable.

Note:
This icon can be used for training, but isn't used.
CUnitType::Missile

Configuration and run time variable of the missile weapon.

Note:
It is planned to support more than one weapons. And the sound of the missile should be used as fire sound.
CUnitType::Explosion

Configuration and run time variable of the missile explosion. This is the explosion that happens if unit is set to ExplodeWhenKilled

CUnitType::CorpseName

Corpse unit-type name, should only be used during setup.

CUnitType::CorpseType

Corpse unit-type pointer, only this should be used during run time. Many unit-types can share the same corpse.

CUnitType::Construction

What is shown in construction phase.

CUnitType::SightRange

Sight range

CUnitType::_HitPoints

Maximum hit points

CUnitType::RepairHP

The HP given to a unit each cycle it's repaired. If zero, unit cannot be repaired

CUnitType::TileWidth

Tile size on map width

CUnitType::TileHeight

Tile size on map height

CUnitType::BoxWidth

Selected box size width

CUnitType::BoxHeight

Selected box size height

CUnitType::NumDirections

Number of directions the unit can face

CUnitType::MinAttackRange

Minimal attack range

CUnitType::ReactRangeComputer

Reacts on enemy for computer

CUnitType::ReactRangePerson

Reacts on enemy for person player

CUnitType::Priority

Priority value / AI Treatment

CUnitType::BurnPercent

The burning limit in percents. If the unit has lees than this it will start to burn.

CUnitType::BurnDamageRate

Burn rate in HP per second

CUnitType::UnitType

Land / fly / naval

Note:
original only visual effect, we do more with this!
CUnitType::DecayRate

Decay rate in 1/6 seconds

CUnitType::AnnoyComputerFactor

How much this annoys the computer

Todo:
not used
CUnitType::MouseAction

Right click action

CUnitType::Points

How many points you get for unit. Used in the final score table.

CUnitType::CanTarget

Which units can it attack

Unit::Revealer

A special unit used to reveal the map for a time. This unit has active sight even when Removed. It's used for Reveal map type of spells.

CUnitType::LandUnit

Land animated

CUnitType::AirUnit

Air animated

CUnitType::SeaUnit

Sea animated

CUnitType::ExplodeWhenKilled

Death explosion animated

CUnitType::Building

Unit is a Building

CUnitType::VisibleUnderFog

Unit is visible under fog of war.

CUnitType::Coward

Unit is a coward, and acts defensively. it will not attack at will and auto-casters will not buff it(bloodlust).

CUnitType::Transporter

Can transport units

CUnitType::AttackFromTransporter

Units inside this transporter can attack with missiles.

CUnitType::MaxOnBoard

Maximum units on board (for transporters), and resources

CUnitType::CanHarvestFrom

Resource can be harvested from.

CUnitType::Harvester

Unit is a resource worker.

CUnitType::NeutralMinimapColorRGB

Says what color a unit will have when it's neutral and is displayed on the minimap.

CUnitType::Vanishes

Corpes & destroyed places

CUnitType::GroundAttack

Can do command ground attack

CUnitType::ShoreBuilding

Building must be build on coast

CUnitType::CanCastSpell

Unit is able to use spells

CUnitType::CanAttack

Unit is able to attack.

CUnitType::RepairRange

Unit can repair buildings. It will use the actack animation. It will heal 4 points for every repair cycle, and cost 1 of each resource, alternatively(1 cycle wood, 1 cycle gold)

Todo:
The above should be more configurable. If units have a repair range, they can repair, and this is the distance.
CUnitType::BuilderOutside

Only valid for buildings. When building the worker will remain outside inside the building.

Warning:
Workers that can build buildings with the

BuilderOutside flag must have the CanRepair flag.

CUnitType::BuilderLost

Only valid for buildings without the BuilderOutside flag. The worker is lost when the building is completed.

CUnitType::SelectableByRectangle

Selectable with mouse rectangle

CUnitType::Sound

Sounds for events

CUnitType::Weapon

Current sound for weapon

Todo:
temporary solution
CUnitType::FieldFlags

Flags that are set, if a unit enters a map field or cleared, if a unit leaves a map field.

CUnitType::MovementMask

Movement mask, this value is and'ed to the map field flags, to see if a unit can enter or placed on the map field.

CUnitType::Stats[PlayerMax]

Unit status for each player

Todo:
This stats should? be moved into the player struct
CUnitType::Type

Type as number

Todo:
Should us a general name f.e. Slot here?
CUnitType::Sprite

Sprite images

CUnitType::ShadowSprite

Shadow sprite images

CUnitType::PlayerColorSprite

Sprite images of the player colors. This image is drawn over CUnitType::Sprite. Used with OpenGL only.

Definition at line 580 of file unittype.h.


Constructor & Destructor Documentation

CUnitType::CUnitType (  ) 

CUnitType::~CUnitType (  ) 


Member Function Documentation

void CUnitType::SetEnergyProductionRate ( int  v  )  [inline]

Definition at line 691 of file unittype.h.

References EnergyCost, and ProductionRate.

Referenced by CclDefineUnitType().

int CUnitType::GetEnergyProductionRate (  )  [inline]

Definition at line 692 of file unittype.h.

References EnergyCost, and ProductionRate.

void CUnitType::SetMagmaProductionRate ( int  v  )  [inline]

Definition at line 693 of file unittype.h.

References MagmaCost, and ProductionRate.

Referenced by CclDefineUnitType().

int CUnitType::GetMagmaProductionRate (  )  [inline]

Definition at line 694 of file unittype.h.

References MagmaCost, and ProductionRate.

void CUnitType::SetMaxEnergyUtilizationRate ( int  v  )  [inline]

Definition at line 696 of file unittype.h.

References EnergyCost, and MaxUtilizationRate.

Referenced by CclDefineUnitType().

int CUnitType::GetMaxEnergyUtilizationRate (  )  [inline]

Definition at line 697 of file unittype.h.

References EnergyCost, and MaxUtilizationRate.

void CUnitType::SetMaxMagmaUtilizationRate ( int  v  )  [inline]

Definition at line 698 of file unittype.h.

References MagmaCost, and MaxUtilizationRate.

Referenced by CclDefineUnitType().

int CUnitType::GetMaxMagmaUtilizationRate (  )  [inline]

Definition at line 699 of file unittype.h.

References MagmaCost, and MaxUtilizationRate.

void CUnitType::SetEnergyValue ( int  v  )  [inline]

Definition at line 701 of file unittype.h.

References CYCLES_PER_SECOND, EnergyCost, and ProductionCosts.

Referenced by CclDefineUnitType().

int CUnitType::GetEnergyValue (  )  [inline]

Definition at line 702 of file unittype.h.

References CYCLES_PER_SECOND, EnergyCost, and ProductionCosts.

void CUnitType::SetMagmaValue ( int  v  )  [inline]

Definition at line 703 of file unittype.h.

References CYCLES_PER_SECOND, MagmaCost, and ProductionCosts.

Referenced by CclDefineUnitType().

int CUnitType::GetMagmaValue (  )  [inline]

Definition at line 704 of file unittype.h.

References CYCLES_PER_SECOND, MagmaCost, and ProductionCosts.

void CUnitType::SetEnergyStorageCapacity ( int  v  )  [inline]

Definition at line 706 of file unittype.h.

References CYCLES_PER_SECOND, EnergyCost, and StorageCapacity.

Referenced by CclDefineUnitType().

int CUnitType::GetEnergyStorageCapacity (  )  [inline]

Definition at line 707 of file unittype.h.

References CYCLES_PER_SECOND, EnergyCost, and StorageCapacity.

void CUnitType::SetMagmaStorageCapacity ( int  v  )  [inline]

Definition at line 708 of file unittype.h.

References CYCLES_PER_SECOND, MagmaCost, and StorageCapacity.

Referenced by CclDefineUnitType().

int CUnitType::GetMagmaStorageCapacity (  )  [inline]

Definition at line 709 of file unittype.h.

References CYCLES_PER_SECOND, MagmaCost, and StorageCapacity.


Member Data Documentation

std::string CUnitType::Ident

std::string CUnitType::Name

std::string CUnitType::File

Sprite files.

Definition at line 588 of file unittype.h.

Referenced by CclDefineUnitType(), and LoadUnitTypeSprite().

std::string CUnitType::ShadowFile

Shadow file.

Definition at line 589 of file unittype.h.

Referenced by CclDefineUnitType(), and LoadUnitTypeSprite().

Level to Draw UnitType at.

Definition at line 595 of file unittype.h.

Referenced by CclDefineUnitType(), DrawLevelCompare(), and UnitOnScreen().

Shadow sprite width.

Definition at line 596 of file unittype.h.

Referenced by CclDefineUnitType(), DrawConstructionShadow(), DrawShadow(), and LoadUnitTypeSprite().

Shadow sprite height.

Definition at line 597 of file unittype.h.

Referenced by CclDefineUnitType(), DrawConstructionShadow(), DrawShadow(), and LoadUnitTypeSprite().

Shadow horizontal offset.

Definition at line 598 of file unittype.h.

Referenced by CclDefineUnitType(), DrawConstructionShadow(), and DrawShadow().

Shadow vertical offset.

Definition at line 599 of file unittype.h.

Referenced by CclDefineUnitType(), DrawConstructionShadow(), and DrawShadow().

Missile for unit explosion.

Definition at line 607 of file unittype.h.

Referenced by CclDefineUnitType(), LetUnitDie(), and LoadUnitTypes().

Definition at line 609 of file unittype.h.

Referenced by CclDefineUnitType(), LetUnitDie(), and ~CUnitType().

std::string CUnitType::CorpseName

Corpse type name.

Definition at line 611 of file unittype.h.

Referenced by CclDefineUnitType(), and LoadUnitTypes().

Corpse unit-type.

Definition at line 612 of file unittype.h.

Referenced by CclDefineUnitType(), DrawLevelCompare(), HandleActionDie(), LetUnitDie(), and LoadUnitTypes().

What is shown in construction phase.

Definition at line 614 of file unittype.h.

Referenced by CclDefineUnitType(), CclParseBuilt(), CclUnit(), DrawConstruction(), DrawConstructionShadow(), SaveUnit(), and UpdateConstructionFrame().

Amount of HP per repair.

Definition at line 616 of file unittype.h.

Referenced by AiCheckRepair(), CclDefineUnitType(), DoRightButton(), getReparableUnits(), and SendRepair().

Tile size on map width.

Definition at line 618 of file unittype.h.

Referenced by AiCheckSurrounding(), AiEnemyUnitsInDistance(), AiFindBuildingPlace2(), AiMoveUnitInTheWay(), AttackTarget(), AttackUnitsInDistance(), AutoAttack(), CalculateStereo(), CanBuildHere(), CanBuildUnitType(), Polymorph::Cast(), CclDefineUnitType(), CclIfNearUnit(), CclIfRescuedNearUnit(), CBuildRestrictionDistance::Check(), CheckForTargetInRange(), CommandAttack(), CommandBuildBuilding(), CommandFollow(), CommandRepair(), CostMoveTo(), CUnit::Draw(), DrawBuildingCursor(), DrawConstructionShadow(), DrawDecoration(), DrawInformations(), DrawShadow(), DrawUnitOn(), DrawUnitSelection(), DrawUnitType(), DropOutAll(), EnemyOnMapTile(), FindRangeAttack(), CUnit::GetMapArea(), GetOrderPosition(), HandleActionBuilt(), HandleActionDie(), HandleActionFollow(), HandleActionMove(), HandleActionTrain(), HitUnit(), CUnitCache::Insert(), CUnit::IsVisibleInViewport(), LetUnitDie(), MapDistanceBetweenTypes(), MapDistanceToType(), MapMarkUnitSight(), MapUnmarkUnitSight(), MarkUnitFieldFlags(), MoveToLocation(), MoveToTarget(), NearestOfUnit(), NewPath(), PlaceReachable(), CUnitCache::Remove(), RescueUnits(), SaveUnit(), SelectSpritesInsideRectangle(), SelectTargetUnitsOfAutoCast(), ShowOrder(), SpellMoveToTarget(), StartGathering(), TargetOnMap(), UIHandleButtonDown(), UnitCountSeen(), UnitOnScreen(), UnitReachable(), UnitsOnTileUnmarkSeen(), UnitToRepairInRange(), UnitTypeCanBeAt(), UnitVisibleOnRadar(), and UnmarkUnitFieldFlags().

Selected box size width.

Definition at line 620 of file unittype.h.

Referenced by CclDefineUnitType(), DrawDecoration(), DrawUnitSelection(), SelectSpritesInsideRectangle(), ShowSingleOrder(), and UnitOnScreen().

Selected box size height.

Definition at line 621 of file unittype.h.

Referenced by CclDefineUnitType(), DrawDecoration(), DrawUnitSelection(), SelectSpritesInsideRectangle(), ShowSingleOrder(), and UnitOnScreen().

Number of directions unit can face.

Definition at line 622 of file unittype.h.

Referenced by CclDefineUnitType(), DrawShadow(), DrawUnitType(), GetStillFrame(), HandleActionBuilt(), CUnit::Init(), UnitRotate(), and UnitUpdateHeading().

Reacts on enemy for computer.

Definition at line 624 of file unittype.h.

Referenced by AttackUnitsInReactRange(), CclDefineUnitType(), and DrawInformations().

Reacts on enemy for person player.

Definition at line 625 of file unittype.h.

Referenced by AttackUnitsInReactRange(), CclDefineUnitType(), and DrawInformations().

Priority value / AI Treatment.

Definition at line 626 of file unittype.h.

Referenced by AttackTarget(), AttackUnitsInDistance(), CclDefineUnitType(), CheckForTargetInRange(), EnemyOnMapTile(), FindRangeAttack(), and TargetOnMap().

Burning percent.

Definition at line 627 of file unittype.h.

Referenced by CclDefineUnitType().

HP burn rate per sec.

Definition at line 628 of file unittype.h.

Referenced by CclDefineUnitType(), and HandleRegenerations().

Unit is able to use spells.

Definition at line 630 of file unittype.h.

Referenced by AiCheckMagic(), CclDefineUnitType(), CommandSpellCast(), DoRightButton(), CUnit::Init(), SendSpellCast(), and ~CUnitType().

Default value for autocast.

Definition at line 631 of file unittype.h.

Referenced by CclDefineUnitType(), CUnit::Init(), and ~CUnitType().

originally only visual effect, we do more with this!

Number of Transporter slots.

Definition at line 633 of file unittype.h.

Referenced by CanTransport(), CclDefineUnitType(), EnterTransporter(), and UpdateUnitVariables().

Decay rate in 1/6 seconds.

Definition at line 636 of file unittype.h.

Referenced by CclDefineUnitType(), and HandleActionTrain().

How much this annoys the computer.

Definition at line 638 of file unittype.h.

Referenced by CclDefineUnitType().

Right click action.

Definition at line 639 of file unittype.h.

Referenced by CclDefineUnitType(), and DoRightButton().

How many points you get for unit.

Definition at line 646 of file unittype.h.

Referenced by Capture::Cast(), Polymorph::Cast(), CclDefineUnitType(), and HitUnit().

Which units can it attack.

Definition at line 647 of file unittype.h.

Referenced by CanTarget(), and CclDefineUnitType().

unsigned CUnitType::Flip

Flip image when facing left.

Definition at line 652 of file unittype.h.

Referenced by CclDefineUnitType(), DrawShadow(), DrawUnitType(), and LoadUnitTypeSprite().

reveal the fog of war

Definition at line 653 of file unittype.h.

Referenced by CclDefineUnitType(), CclUnit(), CUnit::Draw(), CUnitCache::Select(), and SelectUnit().

Land animated.

Definition at line 654 of file unittype.h.

Referenced by CclDefineUnitType().

Air animated.

Definition at line 655 of file unittype.h.

Referenced by ActionStillGeneric(), and CclDefineUnitType().

Sea animated.

Definition at line 656 of file unittype.h.

Referenced by ActionStillGeneric(), and CclDefineUnitType().

Death explosion animated.

Definition at line 657 of file unittype.h.

Referenced by CclDefineUnitType(), and LetUnitDie().

Unit will only attack if instructed.

Definition at line 660 of file unittype.h.

Referenced by AutoAttack(), CclDefineUnitType(), HitUnit(), and SelectTargetUnitsOfAutoCast().

Can attack from transporter.

Definition at line 661 of file unittype.h.

Referenced by ActionStillGeneric(), and CclDefineUnitType().

Corpes & destroyed places.

Definition at line 662 of file unittype.h.

Referenced by CUnit::AssignToPlayer(), CclDefineUnitType(), CheckForTargetInRange(), HitUnit(), MoveToTarget(), SpellMoveToTarget(), and UnitLost().

Can do command ground attack.

Definition at line 663 of file unittype.h.

Referenced by CclDefineUnitType(), and IsButtonAllowed().

Building must be build on coast.

Definition at line 664 of file unittype.h.

Referenced by AiCheckSurrounding(), CanBuildHere(), CanTarget(), CclDefineUnitType(), CommandBuildBuilding(), and UpdateStats().

The builder is lost after the build.

Definition at line 667 of file unittype.h.

Referenced by CclDefineUnitType(), and HandleActionBuilt().

Unit is neutral, used by the editor.

Definition at line 670 of file unittype.h.

Referenced by CclDefineUnitType(), and EditorActionPlaceUnit().

Unit should not be selected during game.

Definition at line 673 of file unittype.h.

Referenced by CclDefineUnitType(), SelectUnit(), and SelectUnitsByType().

Unit is a decoration (act as tile).

Definition at line 674 of file unittype.h.

Referenced by CclDefineUnitType(), DoRightButton(), SendAttack(), UIHandleButtonDown(), and UIHandleMouseMove().

Unit is indestructible (take no damage).

Definition at line 675 of file unittype.h.

Referenced by CclDefineUnitType(), and HitUnit().

Can be transported or healed by a medic.

Definition at line 676 of file unittype.h.

Referenced by CanTransport(), CclDefineUnitType(), HitUnit(), and PassCondition().

Array of user defined variables.

Definition at line 678 of file unittype.h.

Referenced by AutoRepair(), CclDefineUnitType(), DrawPopup(), DrawUnitStats(), CUnit::Init(), NewUnitTypeSlot(), UpdateStats(), UpdateUnitVariables(), and ~CUnitType().

Rules list for building a building.

Definition at line 680 of file unittype.h.

Referenced by CanBuildHere(), CclDefineUnitType(), InitUnitTypes(), OnTopDetails(), and ~CUnitType().

Minimap Color for Neutral Units.

Definition at line 681 of file unittype.h.

Referenced by CclDefineUnitType(), CUnitType(), and DrawUnitOn().

Sounds for events.

Definition at line 683 of file unittype.h.

Referenced by CclDefineUnitType(), ChooseUnitVoiceSound(), HandleActionBuilt(), and MapUnitSounds().

Production efficiency.

Definition at line 689 of file unittype.h.

Referenced by CclDefineUnitType(), and StartBuilding().

Unit map field flags.

Definition at line 713 of file unittype.h.

Referenced by MapFogFilterFlags(), MarkUnitFieldFlags(), UnmarkUnitFieldFlags(), and UpdateStats().

Unit check this map flags for move.

Todo:
This stats should? be moved into the player struct

Definition at line 714 of file unittype.h.

Referenced by AiFindBuildingPlace2(), AiFindTarget(), AiMarkWaterTransporter(), CanBuildUnitType(), CostMoveTo(), DrawBuildingCursor(), UnitFindResource(), UnitTypeCanBeAt(), UnloadUnit(), and UpdateStats().

Unit status for each player.

Definition at line 717 of file unittype.h.

Referenced by CUnit::AssignToPlayer(), CclUnit(), CUnit::ChangeOwner(), HandleActionDie(), LetUnitDie(), SaveUnit(), UpdateStats(), and ~CUnitType().

Shadow sprite image.

Definition at line 720 of file unittype.h.

Referenced by DrawConstructionShadow(), DrawShadow(), LoadUnitTypeSprite(), and ~CUnitType().


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

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