Mathias save load - #14
Open
suad0058 wants to merge 17 commits into
Open
Conversation
For furture use we would be able to use "make all" to compile all files and store them under "class_files" and "make run" to compile all files and run "java Game"
Player-class oprettet med point, level og penge med mulighed for at tilføje point og penge og at fjerne penge (ved køb) Locations-class oprettet til handlingerne i de forskellige rum - ikke færdigt, men jeg har ikke rum-interaktion:) ting er koblet på / redigeret i hhv Game, Space, Context og World-klasserne for at det hænger sammen. dog er point ikke koblet på handlinger, da der mangler noget kontekst. Der er også oprettet en metode til at tjekke om "dagen er omme" - så der kommer en slags tidslinje/tidsfornemmelse og sådan at man måske skal prioritere valg. det kan bare slettes hvis ikke det viser sig at være smart. mine ændringer i eksisterende klasser fra WoZ er markeret med enten kommentarer eller er indenfor -------------, og Locations og Player er nye.
To do add interaction for each room, somehow expand on main Game loop to allow for a second "wave" of commands after transition to another room
status (not implemented) help (now returns description of roomActions) sell <amount> buy <upgrade_name> <amount> pickup <amount> hint (not implemented)
Added more logic to what commands you can execute where (might wanna redo it)
har flyttet det fra Locations til Space, lavet små ændringer og tilføjelser samt kommentarer på forskellige ting. har gjort det muligt at resette dagen/gå til næste dag, som nulstiller mængden af affald samt tæller op på antal dage.
Spiller og bevægelse
Save Load Command
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
No description provided.