//! Pigeon state - implements actions for each state /*! Must be derived twice to implement the actions * that the automata is expected to perform. * * First derivation should be to establish behaviours and data common * to most of the other automata's states. * * Then this subclass is derived further to implement each state's * specific actions */ /* Copyright (C) 2010 Alejandro Valenzuela Roca, * * This file is part of MotorJ, a free framework for videogame creation. * * * * MotorJ is free software: you can redistribute it and/or modify * it under the terms of the GNU Lesser General Public License as published by * the Free Software Foundation, either version 3 of the License, or * (at your option) any later version. * * MotorJ is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU Lesser General Public License for more details. * * You should have received a copy of the GNU Lesser General Public License * along with MotorJ. If not, see . */ #ifndef PIGEONSTATE_CLASS_H #define PIGEONSTATE_CLASS_H class mjPigeonState { public: //! Set the data common to most states (in derivation 1) virtual void SetContext(void* data)=0; //! Implement the specific action for each state (in derivation 2) virtual void Execute(float t_elapsed)=0; }; #endif