Updates for Factory
Updates for Factory
Updates for Factory
Updates for Factory
Create MonsterFactory.java
cleaned up the code a lot

+- changed the variables from public to private in Entity class
+- created setters and getters in Entity class
+- added the singleton pattern in the player class so that only one
player can ever be instasiated except when loading
+- changed accessing public variables of Entity to accessing them
through accessor "get" methods.
+    - Instead of player.backpack it's player.getBackpack()
+-cleaned up code in all the menus (PlayerMenu, DebugMenu...)
fixed methods

fixed the singleton pattern
added the gitignore
style edit and removed deprecated file
style for monsterfactory
Added in the Monster Factory code
Merge branch 'coldsauce' of git://github.com/ColdSauce/JAdventure into ColdSauce-coldsauce

Conflicts:
	src/main/java/com/jadventure/game/Game.java
	src/main/java/com/jadventure/game/Monster.java
	src/main/java/com/jadventure/game/MonsterFactory.java
	src/main/java/com/jadventure/game/Player.java
fixed some conflict errors
Initialize new ArrayList's with the type Monster

AFAIK you should add a Class between the <> when initializing a new List/whatever with <>
Moved Monster specific stuff to new subpackage
Merge pull request #20 from blackwolf12333/patch-1

Initialize new ArrayList's with the type Monster
Fixed the .gitignore file

.gitignore had remnants of past merge conflicts.
Merge pull request #21 from Bl-nK/fixGitIgnore

Fixed the .gitignore file

Thanks for the tidy.
Add a LocationType Enum instead of using strings.

This makes this game compatible with Java6 because of the switch statement in MonsterFactory.
And it keeps the code a bit cleaner I think, also DRY :)
Add imports for Monster classes in Game.java