Refactored Player and PlayerBase ctors
This commit is contained in:
@ -4,6 +4,13 @@ public class PlayerBase implements Destroyable {
|
||||
protected Game game;
|
||||
protected Tile currentTile;
|
||||
protected Direction facingDirection;
|
||||
protected String name;
|
||||
|
||||
public PlayerBase(String name, Tile startTile, Direction startDirection) {
|
||||
this.name = name;
|
||||
currentTile = startTile;
|
||||
facingDirection = startDirection;
|
||||
}
|
||||
|
||||
|
||||
public void destroy() {
|
||||
|
Reference in New Issue
Block a user