#include <Player.h>
Collaboration diagram for Player:

Public Methods | |
| Player (Vec3D teamColor, int startingFunds, vector< MilitaryUnit * > &units, vector< City * > &cities) | |
| void | update () |
| Updates during each game tick. | |
| Bank & | bank () |
| Gets the money manager for this player. | |
| const Vec3D & | color () |
| Returns the team color of this player. | |
Private Attributes | |
| vector< City * > & | m_cities |
| vector< MilitaryUnit * > & | m_units |
| Vec3D | m_color |
| Bank | m_bank |
| DWORD | m_timeOfLastDeposit |
|
||||||||||||||||||||
|
Definition at line 27 of file Player.cpp. References Overhead::cities, and Overhead::units.
00027 : 00028 m_color(color), 00029 m_bank(startingFunds), 00030 m_units(units), 00031 m_cities(cities), 00032 m_timeOfLastDeposit(0) {} |
|
|
Gets the money manager for this player.
Definition at line 38 of file Player.cpp. References m_bank. Referenced by Overhead::overhead_update(), Overhead::playerStrength(), Overhead::processCommand(), NetworkSubsystem::processNetworkData(), HUD::render(), City::trainUnit(), City::update(), and City::upgradeEcon().
00038 { return m_bank; }
|
|
|
Returns the team color of this player.
Definition at line 40 of file Player.cpp. References m_color, and Vec3D. Referenced by Overhead::amIInThisBattle(), City::changeOwner(), Overhead::doCollisionDetection(), Overhead::doVictoryTest(), BattleGroup::fire(), BattleEntry::initBattle(), Overhead::overhead_update(), Overhead::playerStrength(), HUD::processMiniMapInput(), Overhead::processOverheadInput(), HUD::processOverheadInput(), HUD::render(), HUD::renderMiniMap(), HUD::switchToNextBattle(), HUD::switchToPrevBattle(), City::trainUnit(), and City::update().
00040 { return m_color; }
|
|
|
Updates during each game tick.
Definition at line 34 of file Player.cpp.
00035 {
00036 }
|
|
|
Definition at line 46 of file Player.h. Referenced by bank(). |
|
|
|
|
|
Definition at line 44 of file Player.h. Referenced by color(). |
|
|
|
|
|
|
1.3-rc2