public class RockfordUpdateController
extends java.lang.Object
implements java.lang.Runnable
Constructor and Description |
---|
RockfordUpdateController(LevelModel levelModel)
Class constructor
|
Modifier and Type | Method and Description |
---|---|
void |
moveRockford(int rockfordPositionX,
int rockfordPositionY)
Moves Rockford
|
void |
run()
Watches for elements to be moved
|
public RockfordUpdateController(LevelModel levelModel)
levelModel
- Level modelpublic void run()
run
in interface java.lang.Runnable
public void moveRockford(int rockfordPositionX, int rockfordPositionY)
rockfordPositionX
- Next horizontal position on the gridrockfordPositionY
- Next vertical position on the grid