diff options
author | Andrei Karas <akaras@inbox.ru> | 2016-10-04 19:06:59 +0300 |
---|---|---|
committer | Andrei Karas <akaras@inbox.ru> | 2016-10-04 19:06:59 +0300 |
commit | b844884ba160f7a0204382cbbce4c98ecae1139b (patch) | |
tree | 6cc2e3a3c539a45563cf0986791817f5f44de3a0 /src/enums | |
parent | 0a731a66a23061f24f83ce093f8d516497c17144 (diff) | |
download | plus-b844884ba160f7a0204382cbbce4c98ecae1139b.tar.gz plus-b844884ba160f7a0204382cbbce4c98ecae1139b.tar.bz2 plus-b844884ba160f7a0204382cbbce4c98ecae1139b.tar.xz plus-b844884ba160f7a0204382cbbce4c98ecae1139b.zip |
Move collisiontype into enums directory.
Diffstat (limited to 'src/enums')
-rw-r--r-- | src/enums/resources/map/collisiontype.h | 41 |
1 files changed, 41 insertions, 0 deletions
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 <http://www.gnu.org/licenses/>. + */ + +#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 |