aboutsummaryrefslogtreecommitdiff
path: root/src/genericobject.cpp
diff options
context:
space:
mode:
authorkwolekr <kwolekr@minetest.net>2015-10-31 02:38:23 -0400
committerkwolekr <kwolekr@minetest.net>2015-10-31 02:38:23 -0400
commitfdede6003446efe2002fc650f635f1be73265116 (patch)
tree3b4ef31ff3d554ff515e3c67734d9a63b616f088 /src/genericobject.cpp
parent482c4d69b094bddf5e6e10dfc996a972a628850a (diff)
downloadminetest-fdede6003446efe2002fc650f635f1be73265116.tar.gz
minetest-fdede6003446efe2002fc650f635f1be73265116.tar.bz2
minetest-fdede6003446efe2002fc650f635f1be73265116.zip
Fix C++11 compatibility
Diffstat (limited to 'src/genericobject.cpp')
0 files changed, 0 insertions, 0 deletions
ss="hl com">(at your option) any later version. This program 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 this program; if not, write to the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA. */ #pragma once #include "irr_aabb3d.h" #include <string> enum ActiveObjectType { ACTIVEOBJECT_TYPE_INVALID = 0, ACTIVEOBJECT_TYPE_TEST = 1, // Deprecated stuff ACTIVEOBJECT_TYPE_ITEM = 2, // ACTIVEOBJECT_TYPE_RAT = 3, // ACTIVEOBJECT_TYPE_OERKKI1 = 4, // ACTIVEOBJECT_TYPE_FIREFLY = 5, ACTIVEOBJECT_TYPE_MOBV2 = 6, // End deprecated stuff ACTIVEOBJECT_TYPE_LUAENTITY = 7, // Special type, not stored as a static object ACTIVEOBJECT_TYPE_PLAYER = 100, // Special type, only exists as CAO ACTIVEOBJECT_TYPE_GENERIC = 101, }; // Other types are defined in content_object.h struct ActiveObjectMessage { ActiveObjectMessage(u16 id_, bool reliable_=true, const std::string &data_ = "") : id(id_), reliable(reliable_), datastring(data_) {} u16 id; bool reliable; std::string datastring; }; /* Parent class for ServerActiveObject and ClientActiveObject */ class ActiveObject { public: ActiveObject(u16 id): m_id(id) { } u16 getId() const { return m_id; } void setId(u16 id) { m_id = id; }