Uses of Class
model.GameModel
Packages that use GameModel
Package
Description
-
Uses of GameModel in controller
Constructors in controller with parameters of type GameModel -
Uses of GameModel in controller.util
Methods in controller.util that return GameModelConstructors in controller.util with parameters of type GameModel -
Uses of GameModel in model.city
Methods in model.city with parameters of type GameModelModifier and TypeMethodDescriptionvoid
Dies existing citizens and aging them.void
CityStatistics.setCitySatisfaction
(GameModel gm) Setting city average satisfaction being equal to the sum of the average satisfaction of zones and of the average of some additional effects which are related to the whole city (avgCommonZoneSatisfaction). -
Uses of GameModel in model.common
Methods in model.common with parameters of type GameModelModifier and TypeMethodDescriptionboolean
Evaluates the condition for the facility to have effect on a given zonestatic void
HumanManufacture.createYoungCitizen
(GameModel gm) Returns a young citizen, assigns it to a random residential zone (if available), and to the closest workPlace (if available)static void
HumanManufacture.createYoungCitizen
(GameModel gm, Zone workPlace, Zone livingPlace) Creates a young citizen with workPlace and livingPlace given.void
Applies special effect of the facility on a given zone.HumanManufacture.getAvailableSchools
(GameModel gm, Zone livingPlace) static ArrayList<University>
HumanManufacture.getAvailableUniversities
(GameModel gm, Zone livingPlace) static Zone
HumanManufacture.getClosestWorkingPlace
(ArrayList<Zone> availableWorkingZones, Zone livingPlace, GameModel gm) Getting the closest working place (zone) from the available ones.static int
Citizen.getDistanceLiveWork
(GameModel gm, Zone livingPlace, Zone workplace) Getting distance between living place and working place.static LevelOfEducation
HumanManufacture.getEducationLevel
(GameModel gm, Zone livingPlace) Returns a random available level of education.static Zone
HumanManufacture.getLivingPlace
(GameModel gm) Getting an available random Residential zone.double
Budget.getRevenue
(GameModel gm) Gets the revenue of the citydouble
Citizen.getSatisfaction
(GameModel gm) double
Gets the spend of the citydouble
ZoneSatisfaction.getTotalZoneSatisfaction
(GameModel gm) static Zone
HumanManufacture.getWorkingPlace
(GameModel gm, Zone livingPlace) Gets a working place that is connects to the giving living place.void
SideEffect.reverseEffect
(Zone zone, GameModel gm) Reverse special effect of the facility on a given zone.void
Citizen.setWorkplace
(GameModel gm, Zone workplace) -
Uses of GameModel in model.facility
Fields in model.facility declared as GameModelMethods in model.facility with parameters of type GameModelModifier and TypeMethodDescriptionabstract boolean
boolean
boolean
boolean
void
void
void
Forest.getBadEffectIndustrial
(Zone zone, GameModel gm) Filter out industrial zones lies between a given zone and the forest.void
Forest.grewEffect
(Zone zone, GameModel gm) The appending effect along the growth of the forest.void
Forest.reverseEffect
(Zone zone, GameModel gm) void
Police.reverseEffect
(Zone zone, GameModel gm) void
Stadium.reverseEffect
(Zone zone, GameModel gm) Constructors in model.facility with parameters of type GameModel -
Uses of GameModel in model.zone
Fields in model.zone declared as GameModelMethods in model.zone with parameters of type GameModelModifier and TypeMethodDescriptionvoid
Zone.addCitizen
(Citizen citizen, GameModel gm) Adds new citizen to the zone.boolean
boolean
void
void
double
Zone.getZoneSatisfaction
(GameModel gm) Gets the satisfaction of the zonevoid
Pollution effects on the given zonevoid
Zone.removeCitizen
(Citizen citizen, GameModel gm) Removes new citizen to the zone.void
CommercialZone.reverseEffect
(Zone zone, GameModel gm) void
IndustrialZone.reverseEffect
(Zone zone, GameModel gm) void
IndustrialZone.reversePollute
(Zone zone, GameModel gm) Removes pollution effects on the given zoneConstructors in model.zone with parameters of type GameModel -
Uses of GameModel in persistence
Methods in persistence that return GameModelModifier and TypeMethodDescriptionstatic GameModel
Database.read()
Read game model from "data.ser" save filesstatic GameModel
Read game model from given save filesMethods in persistence with parameters of type GameModel -
Uses of GameModel in view
Modifier and TypeMethodDescriptionvoid
ViewModel.createZoneSelector
(GameModel gameModel, Zone zone) void
ViewModel.moneyDisplayManagement
(Controller controller, GameModel gameModel, boolean moneyTab) boolean
ViewModel.pause
(Controller controller, GameModel gameModel) void
ViewModel.taxIncDecButtons
(boolean moneyTab, GameModel gameModel) ModifierConstructorDescriptionBottomMenuBar
(Controller controller, GameModel gameModel) Menu
(Controller controller, GameModel gameModel) MoneyStatistic
(Controller controller, GameModel gameModel) PauseMenu
(Controller controller, GameModel gameModel) StatisticsMenu
(Controller controller, GameModel gameModel) ViewModel
(Controller controller, GameModel gameModel) ZoneSelector
(Controller controller, GameModel gameModel, Zone zone)