Advanced Strategic Command
Public Member Functions | Public Attributes | List of all members
GameMap::ResourceTribute Class Reference

The tribute can not only be used to demand resources from enemies but also to transfer resources to allies. More...

#include <gamemap.h>

Public Member Functions

bool empty ()
 
void read (tnstream &stream)
 
void write (tnstream &stream)
 

Public Attributes

Resources avail [8][8]
 
Resources paid [8][8]
 
Resources payStatusLastTurn [8][8]
 for the messages that are send each turn it is necessary to record how much of the transfer happend during the last turn More...
 

Detailed Description

The tribute can not only be used to demand resources from enemies but also to transfer resources to allies.

tribute.avail[S][D].energy is the ammount of energy that player D may (still) extract from the net of player S tribute.paid[D][S].energy is the amount of energy that player D has already extracted from player S's net S is source player, D is destination player

Definition at line 337 of file gamemap.h.

Member Function Documentation

bool GameMap::ResourceTribute::empty ( )

Definition at line 1569 of file gamemap.cpp.

Referenced by GameMap::write().

void GameMap::ResourceTribute::read ( tnstream stream)

Definition at line 1585 of file gamemap.cpp.

References GameMap::read(), and tnstream::readInt().

Referenced by GameMap::read().

void GameMap::ResourceTribute::write ( tnstream stream)

Definition at line 1615 of file gamemap.cpp.

References GameMap::write(), and tnstream::writeInt().

Referenced by GameMap::write().

Member Data Documentation

Resources GameMap::ResourceTribute::avail[8][8]
Resources GameMap::ResourceTribute::paid[8][8]
Resources GameMap::ResourceTribute::payStatusLastTurn[8][8]

for the messages that are send each turn it is necessary to record how much of the transfer happend during the last turn

Definition at line 343 of file gamemap.h.

Referenced by Player::resetTribute(), Player::swap(), and transfer_all_outstanding_tribute().


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