From b844884ba160f7a0204382cbbce4c98ecae1139b Mon Sep 17 00:00:00 2001 From: Andrei Karas Date: Tue, 4 Oct 2016 19:06:59 +0300 Subject: Move collisiontype into enums directory. --- src/enums/resources/map/collisiontype.h | 41 +++++++++++++++++++++++++++++++++ 1 file changed, 41 insertions(+) create mode 100644 src/enums/resources/map/collisiontype.h (limited to 'src/enums/resources') diff --git a/src/enums/resources/map/collisiontype.h b/src/enums/resources/map/collisiontype.h new file mode 100644 index 000000000..7f52ff003 --- /dev/null +++ b/src/enums/resources/map/collisiontype.h @@ -0,0 +1,41 @@ +/* + * The ManaPlus Client + * Copyright (C) 2004-2009 The Mana World Development Team + * Copyright (C) 2009-2010 The Mana Developers + * Copyright (C) 2011-2016 The ManaPlus Developers + * + * This file is part of The ManaPlus Client. + * + * This program is free software; you can redistribute it and/or modify + * it under the terms of the GNU General Public License as published by + * the Free Software Foundation; either version 2 of the License, or + * 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 General Public License for more details. + * + * You should have received a copy of the GNU General Public License + * along with this program. If not, see . + */ + +#ifndef ENUMS_RESOURCES_MAP_COLLISIONTYPE_H +#define ENUMS_RESOURCES_MAP_COLLISIONTYPE_H + +#include "enums/simpletypes/enumdefines.h" + +enumStart(CollisionType) +{ + COLLISION_EMPTY = 0, // no collision + COLLISION_WALL = 1, // full collison + COLLISION_AIR = 2, // air units can walk + COLLISION_WATER = 3, // water units can walk + COLLISION_GROUNDTOP = 4, // no collision (chair, bed, etc) + COLLISION_PLAYER_WALL = 5, // full collision for player + COLLISION_MONSTER_WALL = 6, // full collision for monster + COLLISION_MAX = 7 // count index +} +enumEnd(CollisionType); + +#endif // ENUMS_RESOURCES_MAP_COLLISIONTYPE_H -- cgit v1.2.3-60-g2f50