Developing TicToe HTML5/Implementing Server Entities: Difference between revisions
Content deleted Content added
imported>Hendrik Brummermann Created page with "{{Navigation TicToe HTML5}}__NOTOC__ Now we have a user interface on the client side. Lets have a look at the server. The server is the place where all the interesting logic wil..." |
imported>Hendrik Brummermann layout |
||
Line 61:
<source lang="java">
/** /**
* gets the x-coordinate * sets the x coordinate
* *
* @return x-coordinate * @param x x-coordinate
*/ */
public int getX() { public void setX(int x) {
return super.getInt("x"); super.put("x", x);
} }
/** /**
* gets the
* *
* @return
*/ */
public int getY() { public void setY(int y) {
return super.getInt("
} }
/** /**
* gets the z-coordinate * sets the
* *
* @return z-coordinate * @param
*/ */
public int getZ() { public void
return super.getInt("z"); super.put("
} }
</source>
| |||