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
Max Gerbeth
ad1efd076f
refactoring: ShopCommand.java
2 years ago
Juliakn66
dc77373d07
refactoring: static to non-static method
2 years ago
Max Gerbeth
67ce5e7300
refactoring: items.json
2 years ago
Max Gerbeth
7680773885
implements: loadAllItems()
2 years ago
Max Gerbeth
5dadc57cdb
refactoring: items.json
2 years ago
Max Gerbeth
be84a78653
refactoring: add to item.json "amountShop" and "gold"
2 years ago
Max Gerbeth
5136f095bc
refactoring: loadItems() to loadCurrentShopItems()
2 years ago
Max Gerbeth
002854d8ba
Shop.java Give Player the Item
2 years ago
Max Gerbeth
f110417e51
Item do not exist in the playerinventory
2 years ago
Max Gerbeth
70ace999d0
Give Player the Item
2 years ago
Max Gerbeth
7f20018078
Test if the player has enough gold
2 years ago
Max Gerbeth
271532d3c4
Test if item still available in the shop
2 years ago
Max Gerbeth
ef4a818ace
Create JSONObjects in Shop.buy()
2 years ago
Max Gerbeth
85bcef10ab
implementing request for item and amount
2 years ago
Max Gerbeth
ac6deabcfe
Merge remote-tracking branch 'origin/develop' into shop
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
Max Gerbeth
f32fa1704f
implementing itemRotation()
2 years ago
Max Gerbeth
b6f1b1f6d0
refactoring: loadPartofItems()
2 years ago
Max Gerbeth
c7b47c84e4
refactoring: printCurrentShopItems()
2 years ago
Max Gerbeth
25a0297ec7
implementing itemRotation()
2 years ago
Max Gerbeth
4a8ebd9166
refactoring: printArrayList() in Shop.java
2 years ago
Max Gerbeth
e568ffa523
implements loadItems()
2 years ago
Max Gerbeth
148b7f0927
unittest: ShopCommandTest.java
2 years ago
Max Gerbeth
f51c508b25
while input loop and validInput() method
2 years ago
Max Gerbeth
e96926dba3
refactoring: itemRotation()
2 years ago
Max Gerbeth
6a5a6454f5
refactoring: Shop.java and Item.java
2 years ago
Max Gerbeth
49bd7cb2c6
Added Method printArrayList()
2 years ago
Max Gerbeth
625d1ea2c2
refactoring: buy(), loadItems(), getCurrentShopItems(), quiz()
2 years ago
Max Gerbeth
d7fb342d9b
refactoring: getCurrentShopItems()
2 years ago
Max Gerbeth
19f227ebe8
Method headers added to Items.java
2 years ago
Max Gerbeth
a8e21e70e7
get and set Methods in Item.java
2 years ago
Max Gerbeth
31aea13df5
Constructor in Item.java
2 years ago
Max Gerbeth
d5bf6ba5fe
Added Item.java
2 years ago
Max Gerbeth
e361f4f2b9
Shop command integration
2 years ago
Max Gerbeth
cfa4e9de4e
Added ShopCommand.java
2 years ago
Max Gerbeth
8e7fbfb26c
Added Shop.java
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