class Door/*****************************************************************************/ { int x; int y; /************constructor************************************/ Door(int x, int y, ObstacleField ofield ) { setPosition(x,y); ofield.removeObs(x,y); } /********Methods*********************************************************************** void setPosition( int x, int y) void setX(int x) void setY(int y) int getX ( ) int getY ( ) */ void setPosition( int x, int y) { setX (x); setY (y); } void setX(int x) { this.x=x; } void setY(int y) { this.y=y; } int getX ( ) { return this.x; } int getY ( ) { return this.y; } }