Juliakn66
85b25fae39
refactoring: added colors
2 years ago
Juliakn66
56792352b6
create lookaroundCommand.java
2 years ago
Juliakn66
fdb1744f20
added InventoryCommand to CommandListener to call inventory in game
2 years ago
Juliakn66
4155578805
edited InventoryCommand: added amount to readInv()
2 years ago
Juliakn66
c204733e70
edited player constructor
added to arrayList inventory the items of file playerconfig
2 years ago
Juliakn66
e7f156b1af
added damage and doesDamage to playerconfig
2 years ago
Juliakn66
f71eae31a1
added methods getAmount() and setAmount() to item.java
2 years ago
Juliakn66
fed6f0b61c
added amount to item.java
added amount of items to constructor
2 years ago
Juliakn66
3a54eff308
edited method readInv()
puts inventory out
2 years ago
Juliakn66
0936d9f39c
implementing readInv()
2 years ago
Juliakn66
14cbe43890
added readInv()
2 years ago
Juliakn66
1e20ed4621
Create InventoryCommand
Create InventoryCommand
2 years ago
Juliakn66
84c1c1e5d9
Merge branch 'develop' of https://github.com/RedEagle-dh/BitBiome into Julia
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
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
David Hermann
456b7d8c59
Added beach to the gameconfig.json
2 years ago
David Hermann
157ceabc59
Edited TravelEngine, added getLocationList and locationExist method
2 years ago
David Hermann
201e2aa1fb
Created class with ansi color codes
2 years ago
David Hermann
3cedb71e90
Added the travel engine to the InteractionLoop
2 years ago
David Hermann
c8ea2a75fe
Added getPlayer method to the travel engine
2 years ago
David Hermann
a3722db633
refactoring: outsourced the entities in the entities package
2 years ago
David Hermann
20bc727d77
Created traveling engine
2 years ago
David Hermann
6e24f5651b
Created player class
2 years ago
David Hermann
20a4614128
Created class where locations can be created
2 years ago
David Hermann
f1e40de850
Created location class
2 years ago
David Hermann
9a6f804563
Created mob class
2 years ago
David Hermann
666fa70a52
Created item class
2 years ago
Juliakn66
bdbc8b03d5
Merge branch 'develop' of https://github.com/RedEagle-dh/BitBiome into Julia
2 years ago
Juliakn66
dc77373d07
refactoring: static to non-static method
2 years ago
David Hermann
13f6640dc7
refactoring: Moved InteractionLoop and JsonParser to the new directory "classes".
Removed test code from JsonParser.
Removed comment in Main
2 years ago
RedEagle
e2d8e6ffb2
Merge pull request #1 from RedEagle-dh/develop into master
Features of this pull request
Interaction loop
JSON parser
Extern boot class
Command interface
Command listener
Help command
Quit command
2 unit tests for the commands
Interaction loop
The main game engine. This engine is looping through interactions and is asking for a user input every time.
JSON parser
A help class to read keys and values from JSON files. With that comes the library "org.json".
Extern boot class
An instance of this class is generated from the main class. This is to make the command handling easier.
Command interface
This is an interface for general commands. Every command has the same method and different own methods.
Command listener
All commands are registered here.
Help command
This command prints a list of all available commands with description for the player.
Quit command
This command ends the game.
Unit tests
The two unit tests for the two commands are checking if the output string is correct or if the output string exists.
2 years ago
David Hermann
ede261e59d
refactor: Deleted unused imports from Main class
2 years ago
David Hermann
59a36a66a6
unittest: Added unit test for the quit/exit command
2 years ago
David Hermann
b3dfbe3601
refactor: outsourced code in String function
2 years ago
David Hermann
dfc7fae51a
refactor: Deleted unit test for main class.
Removed scanner from main class.
2 years ago
David Hermann
ffca558531
unittest: Added unittest for the help command
2 years ago
David Hermann
5a35f0ee84
refactor: Edited help command
Prepared for unit test, output message is now hardcoded
2 years ago
David Hermann
d46176e8a2
Added the quit command
This command quits the game with exit code 0.
2 years ago
David Hermann
0933a56a4d
Added the help command
This command prints a list of all commands which are available
2 years ago
David Hermann
4038f1bfd5
The game loop is now checking if the command exists.
2 years ago
David Hermann
a878b6ad0d
The boot class will be created now.
2 years ago
David Hermann
41ae408d8c
Created the boot class
After creating an object from this class, the game will start by here.
Added the CommandListener
This listener will add the commands which the game has and will have
2 years ago
David Hermann
7b7f81ec65
Created the game engine
An endless loop where a scanner scans the next line after one action and print it.
2 years ago
David Hermann
b93b246de1
Added CommandAPI interface
This interface is importing one method "performCommand" in all future commands.
performCommand has the following parameters:
- scanner, Scanner
2 years ago
David Hermann
7d3da78ded
Added JSONParser.java to handle read and search for key events.
2 years ago
David Hermann
023a5185cc
Added org.json library to project
Version 20180130
2 years ago
David Hermann
2aaef7f903
refactor: Changed the name of the package.
org.example -> org.bitbiome
2 years ago