Methapolis  0.27
 All Classes Namespaces Files Functions Variables Enumerator
micropolisj.network.ServerMicropolis Class Reference
Inheritance diagram for micropolisj.network.ServerMicropolis:
Collaboration diagram for micropolisj.network.ServerMicropolis:

Public Member Functions

 ServerMicropolis ()
 ServerMicropolis (RemoteDistributor server, Map< Integer, PlayerInfo > playerInfos)
void animate ()
int getNumberOfPlayers ()
PlayerInfo getPlayerInfo ()
PlayerInfo getPlayerInfo (int playerID)
void addNewPlayer (int playerID)
RemoteDistributor getServer ()
void setServer (RemoteDistributor server)
NetworkServer getSocketBuilder ()
void setSocketBuilder (NetworkServer socketBuilder)
Map< Integer, PlayerInfogetPlayerInfos ()
void setPlayerInfos (Map< Integer, PlayerInfo > playerInfos)
- Public Member Functions inherited from micropolisj.engine.Micropolis
void spend (int amount, PlayerInfo playerInfo)
void spend (int amount)
 Micropolis ()
 Micropolis (int width, int height)
List< SpritegetSprites ()
void fireFundsChanged ()
void addListener (Listener l)
void removeListener (Listener l)
void addEarthquakeListener (EarthquakeListener l)
void removeEarthquakeListener (EarthquakeListener l)
void addMapListener (MapListener l)
void removeMapListener (MapListener l)
void addTempelListener (TempelListener listener)
void notifyCountdown (int countdown)
void notifyEnd ()
int getWidth ()
int getHeight ()
char getTile (int xpos, int ypos)
char getTileRaw (int xpos, int ypos)
boolean isTilePowered (int xpos, int ypos)
void setTile (int xpos, int ypos, char newTile)
void setTile (int xpos, int ypos, char newTile, int playerID)
final boolean testBounds (int xpos, int ypos)
boolean isBudgetTime ()
void calculateCenterMass ()
int getFireStationCoverage (int xpos, int ypos)
int getLandValue (int xpos, int ypos)
int getTrafficDensity (int xpos, int ypos)
CityLocation getLocationOfMaxPollution ()
void addResearchPoints ()
void addResearchPoints (int playerID)
BudgetNumbers generateBudget ()
BudgetNumbers generateBudget (PlayerInfo playerInfo)
void load (File filename) throws IOException
void load (InputStream inStream) throws IOException
void save (File filename) throws IOException
void save (OutputStream outStream) throws IOException
void toggleAutoBudget ()
void toggleAutoBulldoze ()
void toggleDisasters ()
void setSpeed (Speed newSpeed)
Sprite[] allSprites ()
int getCityPopulation ()
int getCityPopulation (int playerID)
void makeEarthquake ()
void makeFire ()
boolean makeMeltdown ()
void makeMonster ()
void makeTornado ()
void makeFlood ()
ZoneStatus queryZoneStatus (int xpos, int ypos)
int getResValve ()
int getComValve ()
int getIndValve ()
void setGameLevel (int newLevel)
void setFunds (int totalFunds)
int getPlayerID ()
void setBudgetNumbers (int newTaxRate, double roadPct, double newRoadPct, double newPolicePct, double newFirePct, double newResearchPct)

Private Member Functions

void doBudgetInput (BudgetInput bud, PlayerInfo pI)
MapInfo generateMapInfo ()

Private Attributes

RemoteDistributor server
NetworkServer socketBuilder
Map< Integer, PlayerInfoplayerInfos

Additional Inherited Members

- Public Attributes inherited from micropolisj.engine.Micropolis
int[][] pollutionMem
int[][] crimeMem
int[][] popDensity
int[][] rateOGMem
int[][] fireRate
int[][] policeMapEffect
int[][] researchMapEffect
PlayerInfo playerInfo
Stack< CityLocationpowerPlants = new Stack<CityLocation>()
boolean autoBulldoze = true
boolean autoBudget = false
Speed simSpeed = Speed.NORMAL
boolean noDisasters = true
int gameLevel
int cityTime
MainWindow mainWindow
History history = new History()
ArrayList< FinancialHistory > financialHistory = new ArrayList<FinancialHistory>()
- Static Public Attributes inherited from micropolisj.engine.Micropolis
static final int CENSUSRATE = 4
- Protected Member Functions inherited from micropolisj.engine.Micropolis
void init (int width, int height)
void fireCensusChanged ()
void fireCityMessage (MicropolisMessage message, CityLocation loc)
void fireDemandChanged ()
void fireEvaluationChanged ()
void fireMapOverlayDataChanged (MapState overlayDataType)
void fireTileChanged (int xpos, int ypos)
void fireWholeMapChanged ()
void mapScan (int x0, int x1)
void takeCensus ()
void takeCensus2 ()
void moveObjects ()
void animateTiles ()
- Protected Attributes inherited from micropolisj.engine.Micropolis
char[][] map
List< Spritesprites = new ArrayList<Sprite>()

Detailed Description

Definition at line 14 of file ServerMicropolis.java.

Constructor & Destructor Documentation

micropolisj.network.ServerMicropolis.ServerMicropolis ( )

Definition at line 22 of file ServerMicropolis.java.

micropolisj.network.ServerMicropolis.ServerMicropolis ( RemoteDistributor  server,
Map< Integer, PlayerInfo playerInfos 
)

Member Function Documentation

MapInfo micropolisj.network.ServerMicropolis.generateMapInfo ( )
private
int micropolisj.network.ServerMicropolis.getNumberOfPlayers ( )
PlayerInfo micropolisj.network.ServerMicropolis.getPlayerInfo ( )
PlayerInfo micropolisj.network.ServerMicropolis.getPlayerInfo ( int  playerID)
Map<Integer, PlayerInfo> micropolisj.network.ServerMicropolis.getPlayerInfos ( )
RemoteDistributor micropolisj.network.ServerMicropolis.getServer ( )
NetworkServer micropolisj.network.ServerMicropolis.getSocketBuilder ( )
void micropolisj.network.ServerMicropolis.setPlayerInfos ( Map< Integer, PlayerInfo playerInfos)
void micropolisj.network.ServerMicropolis.setServer ( RemoteDistributor  server)
void micropolisj.network.ServerMicropolis.setSocketBuilder ( NetworkServer  socketBuilder)

Member Data Documentation


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