Main Page | Class Hierarchy | Class List | Directories | File List | Class Members | Related Pages

ElectricitySim Class Reference

#include <electricitysim.h>

Inheritance diagram for ElectricitySim:

Simulator Persistence List of all members.

Public Member Functions

 ElectricitySim (SDL_mutex *mutex, BuildingLayer *pblayer, Map *pmap)
void SaveTo (std::fstream &rfs)
void LoadFrom (std::fstream &rfs)
int Main ()
void AddStructure (const uint &w1, const uint &h1, const uint &w2, const uint &h2)
void RemoveStructure (const uint &w1, const uint &h1, const uint &w2, const uint &h2)

Private Member Functions

bool dequeContain (const pair< uint, uint > &)

Private Attributes

uint _uiNumberEPlant
int _iValueMax
deque< pair< uint, uint > > dequepairui
vector< pair< uint, uint > > vectorpairuiEPlant

Detailed Description

This class is a threaded mini-simulator which handles the transmission of electricity in the game

Definition at line 34 of file electricitysim.h.


Member Function Documentation

void ElectricitySim::LoadFrom std::fstream &  rfs  )  [virtual]
 

Overload the base method in order to load our properties

Parameters:
rfs A reference to a file stream which is ready for reading

Reimplemented from Simulator.

Definition at line 58 of file electricitysim.cpp.

References Simulator::LoadFrom().

void ElectricitySim::SaveTo std::fstream &  rfs  )  [virtual]
 

Overload the base method in order to save our properties

Parameters:
rfs A reference to a file stream which is ready for writing

Reimplemented from Simulator.

Definition at line 49 of file electricitysim.cpp.

References Simulator::SaveTo().


The documentation for this class was generated from the following files:
Generated on Sat Nov 11 10:21:11 2006 for OpenCity by  doxygen 1.4.2