Guest User

Untitled

a guest
Aug 15th, 2018
72
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.77 KB | None | 0 0
  1. public CalculateFigures() {
  2.  
  3. // Note: buildings will be updated when building on TileMap or when another building within range will be built.
  4. // So buildings get stored in an object with bool value. The following functions do NOT check whole tilemap.
  5. Calculate apartment trend (are requested building in range?, is within a range of -3 and +3)
  6.  
  7. Calculate apartment satisfaction (do people move in or out, dependent on trend)
  8.  
  9. Calculate violence factor (the higher the value is the more the violence raise -> apartments can burn)
  10.  
  11. Children rate (simple calculation, checks if special kind of building are in range)
  12.  
  13. Children potential (will children be smart or not, dependent on satisfaction and buildings in range)
  14.  
  15. Spawn car driving to building (to make new people move into house)
Add Comment
Please, Sign In to add comment