Tinman  1.0
icontroller.h
Go to the documentation of this file.
1 // Copyright (C) 2014 ISAAC LACOBA MOLINA
2 // Tinman author: Isaac Lacoba Molina
3 //
4 // This program is free software: you can redistribute it and/or modify
5 // it under the terms of the GNU General Public License as published by
6 // the Free Software Foundation, either version 3 of the License, or
7 // (at your option) any later version.
8 //
9 // This program is distributed in the hope that it will be useful,
10 // but WITHOUT ANY WARRANTY; without even the implied warranty of
11 // MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
12 // GNU General Public License for more details.
13 //
14 // You should have received a copy of the GNU General Public License
15 // along with this program. If not, see <http://www.gnu.org/licenses/>.
16 
17 #ifndef ICONTROLLER_H
18 #define ICONTROLLER_H
19 #include "controller.h"
20 #include "instrumentatedCarI.h"
21 
22 class IController: public Controller {
23 
24 public:
25  typedef std::shared_ptr<IController> shared;
27  virtual ~IController();
28 
29  void update(float delta);
30  void exec(Tinman::Action action);
31  void configure();
32 };
33 
34 #endif
std::shared_ptr< IController > shared
Definition: icontroller.h:25
IController(Car::shared car)
Definition: icontroller.cpp:20
Definition: controller.h:10
virtual ~IController()
Definition: icontroller.cpp:29
void exec(Tinman::Action action)
Definition: icontroller.cpp:38
Definition: icontroller.h:22
std::shared_ptr< Car > shared
Definition: car.h:44
void configure()
Definition: icontroller.cpp:25
void update(float delta)
Definition: icontroller.cpp:33