// $Id: SimplePlayer.H,v 1.1.1.1 1999/12/18 22:12:33 jmvidal Exp $
//
//Robocop SimplePlayer
// written by Jose M. Vidal
// http://jmvidal.cse.sc.edu
// Distributed under the terms of the GNU GPL
//

#include<iostream>
#include<string>
#include<strstream>
#include<stdlib.h>
#include<math.h>

#include"UDPSocket.H"
#include"List.H"

#ifndef SimplePlayer_H
#define SimplePlayer_H

/** This class shows how you might want to start implementing
	your agent. The constructor and the init() function need to
	be called first to get the agent into the playing field 
	(i.e. connected to the soccerserver). Once that is done
	the run() function cycles infenitly, getting input from the
	server and sending commands. 

	You might want to extend this class by adding sendDash(),
	sendKick(), etc. member functions.

	You could also think about running the perception in one thread
	and the action in another.
  */
class SimplePlayer {
  UDPSocket sock;
  string team;
public:
  SimplePlayer(const string & server, int port);
  ~SimplePlayer(){
    sock.closeConnection();
  };
  void init();
  void run(const string & teamname);
      
};

#endif