11-12-2013, 04:46 AM
I was playing around trying to get the concept of polymorphism down, and I ended up creating a basic skeleton for entity-based combat (could be used in a game, though this is just barebones), simply by printing out the actions.
Main.java
Entity.java
Player.java
NPC.java
Output:
Main.java
Hidden Content
Entity.java
Hidden Content
Player.java
Hidden Content
NPC.java
Hidden Content
Output:
Hidden Content