Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Browse files
Browse the repository at this point in the history
Groundwork for tiles and level loading
- Loading branch information
Showing
2 changed files
with
37 additions
and
9 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,33 @@ | ||
package level.tiles; | ||
|
||
public abstract class Tile { | ||
|
||
protected int id; | ||
protected boolean isFloor; | ||
protected boolean isWall; | ||
private int color; | ||
|
||
public Tile(int id, boolean isFloor, boolean isWall, int color) { | ||
this.id = id; | ||
this.isFloor = isFloor; | ||
this.isWall = isWall; | ||
this.color = color; | ||
} | ||
|
||
public int getId() { | ||
return id; | ||
} | ||
|
||
public boolean isFloor() { | ||
return isFloor; | ||
} | ||
|
||
public boolean isWall() { | ||
return isWall; | ||
} | ||
|
||
public abstract void tick(); | ||
|
||
//Not sure what needs to be passed in here just yet, will become apparent when the rendering is closer to being done. | ||
public abstract void render(); | ||
} |