Ejemplo n.º 1
0
 /** indicate a filled drop to the gameServer */
 public void fillDrop(int mazeX, int mazeY, MazeWorld.Direction dir) {
   if (!connectedToServer) return;
   String dropString = "FILLDROP " + m_myName + " " + mazeX + " " + mazeY + " " + dir;
   cc.send(m_serverName, dropString);
 }
Ejemplo n.º 2
0
 /** indicate a removed gold to the gameServer */
 public void removeGold(int mazeX, int mazeY, MazeWorld.Direction dir) {
   if (!connectedToServer) return;
   String goldString = "RMGOLD " + m_myName + " " + mazeX + " " + mazeY + " " + dir;
   cc.send(m_serverName, goldString);
 }
Ejemplo n.º 3
0
 /**
  * send a goal to the gameServer
  *
  * @param pose 2-D continuous pose in same convention as used by MazeGraphics
  */
 public void setGoal(RealPose2D pose) {
   if (!connectedToServer) return;
   String goalString =
       "GOAL " + m_myName + " " + pose.getX() + " " + pose.getY() + " " + pose.getTh();
   cc.send(m_serverName, goalString);
 }
Ejemplo n.º 4
0
 /** indicate a removed wall to the gameServer */
 public void removeWall(int mazeX, int mazeY, MazeWorld.Direction dir) {
   if (!connectedToServer) return;
   String wallString = "RMWALL " + m_myName + " " + mazeX + " " + mazeY + " " + dir;
   cc.send(m_serverName, wallString);
 }
Ejemplo n.º 5
0
 /**
  * Send the pose to the gameServer
  *
  * @param pose 2-D continuous pose in same convention as used by MazeGraphics
  */
 public void setPose(RealPose2D pose) {
   if (!connectedToServer) return;
   String poseString =
       "POSE " + m_myName + " " + pose.getX() + " " + pose.getY() + " " + pose.getTh();
   cc.send(m_serverName, poseString);
 }