#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 | |
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 327 of file gamemap.h.
| bool GameMap::ResourceTribute::empty | ( | ) |
| void GameMap::ResourceTribute::read | ( | tnstream & | stream | ) |
Definition at line 1581 of file gamemap.cpp.
References avail, paid, payStatusLastTurn, tnstream::readInt(), and Resources::resource().
Referenced by GameMap::read().
| void GameMap::ResourceTribute::write | ( | tnstream & | stream | ) |
Definition at line 1611 of file gamemap.cpp.
References avail, paid, payStatusLastTurn, Resources::resource(), and tnstream::writeInt().
Referenced by GameMap::write().
Definition at line 329 of file gamemap.h.
Referenced by PutTribute::checkbuilding(), GetResource::checkbuilding(), empty(), read(), Player::resetTribute(), PutTribute::start(), Player::swap(), transfer_all_outstanding_tribute(), and write().
Definition at line 330 of file gamemap.h.
Referenced by PutTribute::checkbuilding(), GetResource::checkbuilding(), empty(), ResourceTribute::getState(), read(), Player::resetTribute(), PutTribute::start(), Player::swap(), transfer_all_outstanding_tribute(), and write().
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 333 of file gamemap.h.
Referenced by read(), Player::resetTribute(), Player::swap(), transfer_all_outstanding_tribute(), and write().
1.5.1