예제 #1
0
 //Draws the player on the grid
 void drawPlayer()
 {
     Cords[] cordArray = rotator();
     for (int i = 0; i < 4; i++)
     {
         blockArray[curPlayer.getXCord() + cordArray[i].getX(), curPlayer.getYCord() + cordArray[i].getY()].changeState(2);
     }
 }
예제 #2
0
 //creates new player block
 public void newPlayer()
 {
     curPlayer = new PlayerBlock();
     Block.changePlayerColour(curPlayer.getColour());
     if (blockArray[curPlayer.getXCord(), curPlayer.getYCord()].getState() == 1)
     {
         devastation();
     }
 }