public class BlockDudeLevelConstructor
extends java.lang.Object
BlockDude
from levels
in the classic Block Dude game. Currently this class will
provide the initial states for the first three levels of Block Dude.Modifier and Type | Method and Description |
---|---|
static void |
addFloor(int[][] map) |
static void |
floorSegment(int[][] map,
int x0,
int xf,
int y) |
static State |
getLevel1(Domain domain)
Returns the initial
State of the first level. |
static State |
getLevel2(Domain domain)
Returns the initial
State of the second level. |
static State |
getLevel3(Domain domain)
Returns the initial
State of the third level. |
static void |
wallSegment(int[][] map,
int y0,
int yf,
int x) |
public static State getLevel1(Domain domain)
State
of the first level.domain
- the domain to which the state will belong.State
of the first level.public static State getLevel2(Domain domain)
State
of the second level.domain
- the domain to which the state will belong.State
of the second level.public static State getLevel3(Domain domain)
State
of the third level.domain
- the domain to which the state will belong.State
of the third level.public static void addFloor(int[][] map)
public static void floorSegment(int[][] map, int x0, int xf, int y)
public static void wallSegment(int[][] map, int y0, int yf, int x)