#include <alliancesetup.h>
Inheritance diagram for AllianceSetupWidget:

Public Types | |
| enum | DiplomaticTransitions { SNEAK_ATTACK, TO_WAR, TO_TRUCE, TO_PEACE, TO_PEACE_SV, TO_ALLIANCE } |
Public Member Functions | |
| AllianceSetupWidget (GameMap *gamemap, bool allEditable, PG_Widget *parent, const PG_Rect &r, const std::string &style="ScrollWidget") | |
| void | Apply () |
| ~AllianceSetupWidget () | |
Protected Types | |
| typedef map< int, PG_Widget * > | DiplomaticWidgets |
Protected Member Functions | |
| int | linearize (int actingPlayer, int secondPlayer) |
| void | setState (DiplomaticStates s, int actingPlayer, int secondPlayer) |
| DiplomaticStates & | getState (int actingPlayer, int secondPlayer) |
Protected Attributes | |
| vector< vector< DiplomaticTransitions > > | stateChanges |
| vector< vector< DiplomaticStates > > | states |
| DiplomaticWidgets | diplomaticWidgets |
| vector< PlayerWidgets > | playerWidgets |
Classes | |
| struct | PlayerWidgets |
|
|
Definition at line 47 of file alliancesetup.h. |
|
|
Definition at line 40 of file alliancesetup.h. |
|
||||||||||||||||||||||||
|
|
Definition at line 326 of file alliancesetup.cpp. |
|
|
Definition at line 296 of file alliancesetup.cpp. References GameMap::actplayer, Player::diplomacy, DiplomaticStateVector::getState(), getState(), GameMap::player, DiplomaticStateVector::propose(), DiplomaticStateVector::queuedStateChanges, DiplomaticStateVector::setState(), SNEAK_ATTACK, DiplomaticStateVector::sneakAttack(), and stateChanges. Referenced by StartMultiplayerGame::Apply(), and AllianceSetupWindow::Apply(). |
|
||||||||||||
|
Definition at line 285 of file alliancesetup.cpp. References states. Referenced by AllianceSetupWidget(), Apply(), and setState(). |
|
||||||||||||
|
Definition at line 290 of file alliancesetup.cpp. References GameMap::getPlayerCount(). Referenced by AllianceSetupWidget(), and setState(). |
|
||||||||||||||||
|
Definition at line 276 of file alliancesetup.cpp. References diplomaticWidgets, getState(), and linearize(). Referenced by AllianceSetupWidget(). |
|
|
Definition at line 48 of file alliancesetup.h. Referenced by AllianceSetupWidget(), and setState(). |
|
|
Definition at line 50 of file alliancesetup.h. Referenced by AllianceSetupWidget(). |
|
|
Definition at line 44 of file alliancesetup.h. Referenced by AllianceSetupWidget(), and Apply(). |
|
|
Definition at line 45 of file alliancesetup.h. Referenced by AllianceSetupWidget(), and getState(). |
1.4.2