Entire project
This commit is contained in:
commit
ccbbb0a5b0
108 changed files with 2908 additions and 0 deletions
23
src/com/gnarly/game/commands/Rotate.java
Normal file
23
src/com/gnarly/game/commands/Rotate.java
Normal file
|
@ -0,0 +1,23 @@
|
|||
package com.gnarly.game.commands;
|
||||
|
||||
public class Rotate implements Command {
|
||||
|
||||
private int x, y;
|
||||
|
||||
public Rotate(int x, int y) {
|
||||
this.x = x;
|
||||
this.y = y;
|
||||
}
|
||||
|
||||
public int getX() {
|
||||
return x;
|
||||
}
|
||||
|
||||
public int getY() {
|
||||
return y;
|
||||
}
|
||||
|
||||
public String getCommand() {
|
||||
return "ROTATE " + x + " " + y;
|
||||
}
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue