Phoenix2D-Library
0.10
Main Page
Related Pages
Modules
Namespaces
Classes
Files
File List
communications
PlayMode.cpp
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
#include "
PlayMode.h
"
22
#include "
Commands.h
"
23
#include "
Parser.h
"
24
namespace
Phoenix
25
{
26
PlayMode::PlayMode
(
Commands
*commands) {
27
this->commands =
commands
;
28
}
29
30
PlayMode::~PlayMode
() {
31
32
}
33
34
void
PlayMode::onStart
() {
35
Parser::registerPlayMode
(
this
);
36
}
37
38
void
PlayMode::onPreExecute
() {
39
commands
->
flush
();
40
}
41
42
void
PlayMode::onPostExecute
() {
43
commands
->
sendCommands
();
44
}
45
46
void
PlayMode::onEnd
() {
47
48
}
49
}
Phoenix::PlayMode::onStart
void onStart()
Definition:
PlayMode.cpp:34
PlayMode.h
Phoenix::PlayMode::commands
Commands * commands
Definition:
PlayMode.h:61
Phoenix::PlayMode::PlayMode
PlayMode(Commands *commands)
Definition:
PlayMode.cpp:26
Phoenix::Commands::flush
void flush()
Definition:
Commands.cpp:46
Phoenix::Commands
Commands The Commans lorem Ipsum
Definition:
Commands.h:42
Parser.h
Phoenix::PlayMode::~PlayMode
virtual ~PlayMode()
Definition:
PlayMode.cpp:30
Phoenix::PlayMode::onPostExecute
void onPostExecute()
Definition:
PlayMode.cpp:42
Phoenix::Parser::registerPlayMode
static void registerPlayMode(PlayMode *play_mode)
Definition:
Parser.cpp:276
Phoenix::PlayMode::onEnd
void onEnd()
Definition:
PlayMode.cpp:46
Phoenix::Commands::sendCommands
int sendCommands()
Definition:
Commands.cpp:194
Phoenix::PlayMode::onPreExecute
void onPreExecute()
Definition:
PlayMode.cpp:38
Commands.h
Generated on Wed Mar 26 2014 18:16:41 for Phoenix2D-Library by
1.8.6