1 /** @file state.h Mobj state definition. 2 * 3 * @authors Copyright (c) 2015-2017 Jaakko Keränen <jaakko.keranen@iki.fi> 4 * 5 * @par License 6 * GPL: http://www.gnu.org/licenses/gpl.html 7 * 8 * <small>This program is free software; you can redistribute it and/or modify 9 * it under the terms of the GNU General Public License as published by the 10 * Free Software Foundation; either version 2 of the License, or (at your 11 * option) any later version. This program is distributed in the hope that it 12 * will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty 13 * of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General 14 * Public License for more details. You should have received a copy of the GNU 15 * General Public License along with this program; if not, see: 16 * http://www.gnu.org/licenses</small> 17 */ 18 19 #ifndef LIBDOOMSDAY_DEFN_STATE_H 20 #define LIBDOOMSDAY_DEFN_STATE_H 21 22 #include "definition.h" 23 24 namespace defn { 25 26 /** 27 * Mobj state definition. 28 */ 29 class LIBDOOMSDAY_PUBLIC State : public Definition 30 { 31 public: State()32 State() : Definition() {} State(State const & other)33 State(State const &other) : Definition(other) {} State(de::Record & d)34 State(de::Record &d) : Definition(d) {} State(de::Record const & d)35 State(de::Record const &d) : Definition(d) {} 36 37 void resetToDefaults(); 38 39 de::dint32 misc(de::dint index) const; 40 void setMisc(de::dint index, de::dint32 value); 41 }; 42 43 } // namespace defn 44 45 #endif // LIBDOOMSDAY_DEFN_STATE_H 46