You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
embronk edited this page Apr 27, 2022
·
12 revisions
Overview
The level builder will allow the user to place the enemy, neutral, and player cities wherever they want on the map, decide on which kind of troops to use, and decide on the season in which they want to play. It will then save and load the level in the main program so that the user can play the game using the level they created.
File Format
File Format
File will be in binary.
Begins with the string "Civilization209" to prove that it is a proper save file of the game.
Int for score
Char identifying the season
Char for level type
Int X representing the number of items in the Entity List.
Following that, there will be X sections representing X entities.
two doubles representing the location coordinates.
Int Turn count
Int Population
Char representing nationality.
Boolean selected
Char city type
Sample File
(Text representation of binary)
Civilization 209
300
S
4
5|21|0|0|P|false|S|
100.0|100.0|0|0|P|false|F|
70.4|46.2|0|0|N|false|S
300.2|267.4|0|0|E|false|S