InputDeviceAI.h

Go to the documentation of this file.
00001 
00005 /* Copyright © 2010 James Legg.
00006     This program is free software: you can redistribute it and/or modify
00007     it under the terms of the GNU General Public License as published by
00008     the Free Software Foundation, either version 3 of the License, or
00009     (at your option) any later version.
00010 */
00011 #ifndef INPUT_DEVICE_AI_H
00012 #define INPUT_DEVICE_AI_H
00013 
00014 #include "InputDevice.h"
00015 #include "floatfann.h"
00016 
00017 namespace Engine
00018 {
00019 
00023 class InputDeviceAI : public Engine::InputDevice
00024 {
00025 public:
00026     InputDeviceAI();
00027     virtual ~InputDeviceAI();
00028     virtual int get_acceleration();
00029     virtual int get_slide();
00030     virtual int get_steering();
00031     virtual void poll();
00033     void save();
00035     void mutate();
00037     void cross(const InputDeviceAI & p1, const InputDeviceAI & p2);
00038 private:
00039     int acceleration, slide, steering;
00040     fann * ann;
00041 };
00042 
00043 } // namespace Engine
00044 
00045 #endif // INPUT_DEVICE_AI_H

Get Racer at SourceForge.net. Fast, secure and Free Open Source software downloads

Generated at Mon Sep 6 00:41:12 2010 by Doxygen version 1.4.7 for Racer version svn335.