fdai7430
5e4cb1f890
Added runaway to help command
2 years ago
fdai7430
038b84d87f
Added output to runaway input while in combat
2 years ago
fdai7430
fad85807f2
refactoring: Made a function which executes one cycle of combat
2 years ago
fdai7430
868eb67c39
Added use to help command
2 years ago
fdai7430
51c5b40827
Removed useless test
2 years ago
fdai7430
9ed2f1a825
refactoring: Fixed use command not jumping out of COMBAT_LOOP
2 years ago
fdai7430
c392ee6c26
unittest: Added test for testRunawaySucceeds()
2 years ago
fdai7430
0fbbac75bc
Added answers for the other commands during combat
2 years ago
fdai7430
2d71a5a016
unittest: Added test for getRunawayChance()
2 years ago
fdai7430
0689c30a62
refactoring: Created function for dynamically getting runaway chance
2 years ago
fdai7430
eee18034e0
refactoring: Removed obsolete function in UseCommandTest.java
2 years ago
fdai7430
05d5530472
refactoring: Made use() return the final output and print it when the function is called
2 years ago
fdai7430
566f9797f7
unittest: Added test for RunAwayCommand.java
2 years ago
fdai7430
df1d57aa8b
Added output to runaway command
2 years ago
fdai7430
7bc0e96f9e
Added runaway command to general command listener
2 years ago
fdai7430
6a2c1f96c6
Added ability to run away in combat
2 years ago
fdai7430
0de3c01e11
Added combat loop
2 years ago
fdai7430
7eee628e9a
refactoring: Pulled asking which item to use and on which enemy into its own function
2 years ago
fdai7430
d47b77c1ea
Made input for getUseMessage() case insensitive
2 years ago
fdai7430
eac126198b
refactoring: Made UseCommand.java compliant to POSIX 3.206
2 years ago
fdai7430
1b2d72a078
Items and target should not be provided as arguments by player but instead be requested
2 years ago
fdai7430
0ba9bd4e7b
refactoring: Added Player object in performCommand()
2 years ago
fdai7430
29141ac7aa
Optimized tests
2 years ago
fdai7430
ac09973e1f
Added test for testUseItem() (Player version)
2 years ago
fdai7430
5aa9a17f37
Added test for testUseItem() (Mob version)
2 years ago
fdai7430
ba715ab500
Added test for getUseMessage()
2 years ago
fdai7430
6a4f417eee
If something does damage, you can attack with it, not the other way around.
2 years ago
fdai7430
e5dcc5e566
Made functions in UseCommand public so they can be accessed for testing
2 years ago
fdai7430
6426ea06c7
Combat only starts when player actually attacks someone
2 years ago
fdai7430
faf6ec53ef
refactoring: Added access modifier for enemies ArrayList
2 years ago
fdai7430
7694c397b0
refactoring: Pulled getting enemies from location into its own function
2 years ago
fdai7430
2b44d99b7a
refactoring: Created ArrayList for all enemy mobs
2 years ago
fdai7430
0813247215
Merge remote-tracking branch 'origin/develop' into fight-engine
2 years ago
fdai7430
230a939ea2
Enemy mobs now attack player when in combat
2 years ago
fdai7430
56b2b46a1a
Added loop in UseCommand.performCommand() which only ends when every enemy has been slain
2 years ago
David Hermann
d09e3b1c2d
refactoring: Removed unused imports
2 years ago
David Hermann
c7b8855442
refactoring: Language change, added color
When a command is unkown, the language is now german and the message is red.
2 years ago
David Hermann
67822c0a8e
refactoring: Deleted unused imports
2 years ago
fdai7430
2604815f3e
Implemented useItem(… Player)
2 years ago
fdai7430
2bc63d081a
Implemented useItem(… Mob)
2 years ago
fdai7430
e68f5314e1
Adapted to f8926e0496
2 years ago
fdai7430
f8926e0496
Merge branch 'develop' into fight-engine
2 years ago
David Hermann
ec70ab4803
Summary Commit
Boot.java: Added getPlayerSave()
InteractionLoop: Asks for name if the player's name is null
JsonParser: New method writeObject
Travel Engine: getLocationByName() method
Edited Help Command
Added setter for Player's name
New Quiz questions
Edited Help unit test
Added unit test for Location Command
2 years ago
fdai7430
34f0b127b1
Implemented getUseMessage()
2 years ago
fdai7430
b4bc493d05
Added getTarget() function
2 years ago
fdai7430
78fc6bf0c5
Added getItem() function
2 years ago
David Hermann
c18cb6190a
refactoring: outsourced current location message
2 years ago
David Hermann
48af98341b
Added Travel command, to travel to different places
2 years ago
David Hermann
06d01e97b4
Added location command to get the current location of the player
2 years ago
David Hermann
a9f0ec154b
Added createBeach method to createLocations class
2 years ago