Phoenix2D-Library  0.10
Commands.h
Go to the documentation of this file.
1 /*
2  * Phoenix2D (RoboCup Soccer Simulation 2D League)
3  * Copyright (c) 2013 Ivan Gonzalez
4  *
5  * This file is part of Phoenix2D.
6  *
7  * Phoenix2D is free software: you can redistribute it and/or modify
8  * it under the terms of the GNU General Public License as published by
9  * the Free Software Foundation, either version 3 of the License, or
10  * (at your option) any later version.
11  *
12  * Phoenix2D is distributed in the hope that it will be useful,
13  * but WITHOUT ANY WARRANTY; without even the implied warranty of
14  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
15  * GNU General Public License for more details.
16  *
17  * You should have received a copy of the GNU General Public License
18  * along with Phoenix2D. If not, see <http://www.gnu.org/licenses/>.
19  */
20 
21 #ifndef COMMANDS_H_
22 #define COMMANDS_H_
23 
24 #include <string>
25 
29 namespace Phoenix
30 {
31 
32 class Connect;
33 
42 class Commands {
43 public:
44  Commands(Connect *connect);
45  ~Commands();
46  void flush();
47  void move(double x, double y);
48  void turn(double moment);
49  void turnNeck(double moment);
50  void dash(double power, double direction);
51  void say(std::string message);
52  void catchBall(double direction);
53  void kick(double power, double direction);
54  void tackle(double power, bool willToFoul);
55  void pointTo(double distance, double direction);
56  void changeView(std::string width);
57  void moveObject(std::string object, double x, double y);
58  void changeMode(std::string mode);
59  void start();
60  void recover();
61  int sendCommands();
62 };
64 } // End namespace Phoenix
67 #endif /* COMMANDS_H_ */
void pointTo(double distance, double direction)
Definition: Commands.cpp:149
void dash(double power, double direction)
Definition: Commands.cpp:92
void changeView(std::string width)
Definition: Commands.cpp:159
void changeMode(std::string mode)
Definition: Commands.cpp:175
Commands(Connect *connect)
Definition: Commands.cpp:38
void move(double x, double y)
Definition: Commands.cpp:52
Commands The Commans lorem Ipsum
Definition: Commands.h:42
void turn(double moment)
Definition: Commands.cpp:62
void moveObject(std::string object, double x, double y)
Definition: Commands.cpp:166
void catchBall(double direction)
Definition: Commands.cpp:119
static double x
Definition: Self.cpp:89
void kick(double power, double direction)
Definition: Commands.cpp:129
void tackle(double power, bool willToFoul)
Definition: Commands.cpp:139
static double y
Definition: Self.cpp:90
void say(std::string message)
Definition: Commands.cpp:112
void turnNeck(double moment)
Definition: Commands.cpp:77