ctf.evaluation.simulator
Class DualController
java.lang.Object
ctf.evaluation.simulator.DualController
public class DualController
- extends java.lang.Object
A simple dual client (both teams) for a CTF simulator
Field Summary |
(package private) Log |
out
Where output is logged |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
out
Log out
- Where output is logged
DualController
public DualController()
throws java.lang.Exception
- Constructor
- Throws:
java.lang.Exception
main
public static void main(java.lang.String[] args)
throws java.lang.Exception
- Main entry point
- Throws:
java.lang.Exception
sendCommand
protected void sendCommand(Connection connection,
java.lang.String command)
throws java.io.IOException,
NetworkException
- Throws:
java.io.IOException
NetworkException
placeTree
protected void placeTree(Connection connection,
Point tree)
throws java.io.IOException,
NetworkException
- Throws:
java.io.IOException
NetworkException
placeFlag
protected void placeFlag(Connection connection,
Point flag)
throws java.io.IOException,
NetworkException
- Throws:
java.io.IOException
NetworkException