Skip to content

Conversation

@qporion
Copy link
Contributor

@qporion qporion commented Apr 3, 2015

public class Obstacle {

private int x,y;

public Obstacle(int x, int y) {
    this.setX(x);
    this.setY(y);
}

public int getX() {
    return x;
}

public void setX(int x) {
    this.x = x;
}

public int getY() {
    return y;
}

public void setY(int y) {
    this.y = y;
}

public String toString(){
    return "O";
}

}

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant