Skip to content
Permalink
88bc5881c0
Switch branches/tags

Name already in use

A tag already exists with the provided branch name. Many Git commands accept both tag and branch names, so creating this branch may cause unexpected behavior. Are you sure you want to create this branch?
Go to file
 
 
Cannot retrieve contributors at this time
33 lines (25 sloc) 631 Bytes
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();
}