Phoenix2D-Library  0.10
PlayOn.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 PLAYON_H_
22 #define PLAYON_H_
23 
24 #include "PlayMode.h"
25 #include "WorldModel.h"
26 #include <string>
27 
31 namespace Phoenix
32 {
33 
34 class Commands;
35 class Actions;
43 class PlayOn : public PlayMode
44 {
46 public:
48  ~PlayOn();
49  void setup(WorldModel world);
50  void onPlayerExecute(WorldModel world);
51  void onGoalieExecute(WorldModel world);
52  void onCoachExecute(WorldModel world);
53  void onMessageReceived(std::string message, int sender);
54 };
56 } // End namespace Phoenix
59 #endif /* PLAYON_H_ */
void onMessageReceived(std::string message, int sender)
Definition: PlayOn.cpp:112
void setup(WorldModel world)
Definition: PlayOn.cpp:44
Commands * commands
Definition: PlayMode.h:61
Commands The Commans lorem Ipsum
Definition: Commands.h:42
void onPlayerExecute(WorldModel world)
Definition: PlayOn.cpp:85
WorldModel The WorldModel lorem Ipsum
Definition: WorldModel.h:38
PlayOn The PlayOn lorem Ipsum
Definition: PlayOn.h:43
void onCoachExecute(WorldModel world)
Definition: PlayOn.cpp:108
void onGoalieExecute(WorldModel world)
Definition: PlayOn.cpp:104
PlayOn(Commands *commands, Actions *actions)
Definition: PlayOn.cpp:36
Actions * actions
Definition: PlayOn.h:45
PlayMode The PlayMode lorem Ipsum
Definition: PlayMode.h:59
Actions The Actions lorem Ipsum
Definition: Actions.h:38