Britbot
Public Member Functions | Public Attributes | Properties | Private Attributes
Britbot.Simulator.SimulatedGame Class Reference

This class represents a possibility of a game based on an assignment. More...

List of all members.

Public Member Functions

 SimulatedGame ()
 A c'tor, this should allocate memory This should be called ONCE PER TURN.
void ResetSimulation ()
 This resets the simulation to the current game status, it should be used for every assignment.
void AddEvent (SimulatedEvent newEvent)
 This enqueues a new event to the pending events.
double RunSimulation (CancellationToken cancellationToken)
 Simulates the game and calculates the score.
double CalculatePpt ()
 calculates how many point per turn each side will get

Public Attributes

Dictionary< int, SimulatedGroupEnemyGroups
 List of all enemy groups.
Dictionary< int, SimulatedIslandIslands
 List of the islands in the game.
Dictionary< int, SimulatedGroupMyGroups
 List of all friendly groups.
double MyIslandCount
double EnemyIslandCount
double MyDeadPirates
double EnemyDeadPirates
double OriginalMyIslandCount
double OriginalEnemyIslandCount
double OriginalMyDeadPirates
double OriginalEnemyDeadPirates
List< SimulatedEventConstantEvents
 a queue representing the constant events those that will happen in all possible assignments

Properties

double Score [get, set]
 the score
int CurrentTurn [get, set]
 the current turn of the simulation

Private Attributes

HeapPriorityQueue< SimulatedEventCommingEvents
 A priority queue representing the events to come in this scenario Events are prioratized in a cronological order.

Detailed Description

This class represents a possibility of a game based on an assignment.

Definition at line 16 of file SimulatedGame.cs.


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