GCC Code Coverage Report
Directory: src/ Exec Total Coverage
File: src/const/resources/spriteaction.h Lines: 31 31 100.0 %
Date: 2017-11-29 Branches: 0 0 0.0 %

Line Branch Exec Source
1
/*
2
 *  The ManaPlus Client
3
 *  Copyright (C) 2004-2009  The Mana World Development Team
4
 *  Copyright (C) 2009-2010  The Mana Developers
5
 *  Copyright (C) 2011-2017  The ManaPlus Developers
6
 *
7
 *  This file is part of The ManaPlus Client.
8
 *
9
 *  This program is free software; you can redistribute it and/or modify
10
 *  it under the terms of the GNU General Public License as published by
11
 *  the Free Software Foundation; either version 2 of the License, or
12
 *  any later version.
13
 *
14
 *  This program is distributed in the hope that it will be useful,
15
 *  but WITHOUT ANY WARRANTY; without even the implied warranty of
16
 *  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
17
 *  GNU General Public License for more details.
18
 *
19
 *  You should have received a copy of the GNU General Public License
20
 *  along with this program.  If not, see <http://www.gnu.org/licenses/>.
21
 */
22
23
#ifndef CONST_RESOURCES_SPRITEACTION_H
24
#define CONST_RESOURCES_SPRITEACTION_H
25
26
#include <string>
27
28
/*
29
 * Remember those are the main action.
30
 * Action subtypes, e.g.: "attack_bow" are to be passed by items.xml after
31
 * an ACTION_ATTACK call.
32
 * Which special to be use to to be passed with the USE_SPECIAL call.
33
 * Running, walking, ... is a sub-type of moving.
34
 * ...
35
 * Please don't add hard-coded subtypes here!
36
 */
37
namespace SpriteAction
38
{
39
54
    static const std::string DEFAULT("stand");
40
54
    static const std::string STAND("stand");
41
54
    static const std::string SIT("sit");
42
54
    static const std::string SITTOP("sittop");
43
54
    static const std::string DEAD("dead");
44
54
    static const std::string MOVE("walk");
45
54
    static const std::string ATTACK("attack");
46
54
    static const std::string SPAWN("spawn");
47
54
    static const std::string CAST("cast");
48
49
54
    static const std::string FLY("fly");
50
54
    static const std::string SWIM("swim");
51
54
    static const std::string RIDE("ride");
52
54
    static const std::string STANDSKY("standsky");
53
54
    static const std::string STANDWATER("standwater");
54
54
    static const std::string STANDRIDE("standride");
55
54
    static const std::string SITSKY("sitsky");
56
54
    static const std::string SITWATER("sitwater");
57
54
    static const std::string SITRIDE("sitride");
58
54
    static const std::string ATTACKSKY("attacksky");
59
54
    static const std::string ATTACKWATER("attackwater");
60
54
    static const std::string ATTACKRIDE("attackride");
61
54
    static const std::string CASTSKY("castsky");
62
54
    static const std::string CASTWATER("castwater");
63
54
    static const std::string CASTRIDE("castride");
64
54
    static const std::string SPAWNSKY("spawnsky");
65
54
    static const std::string SPAWNWATER("spawnwater");
66
54
    static const std::string SPAWNRIDE("spawnride");
67
54
    static const std::string DEADSKY("deadsky");
68
54
    static const std::string DEADWATER("deadwater");
69
54
    static const std::string DEADRIDE("deadride");
70
71
18
    static const std::string INVALID;
72
}  // namespace SpriteAction
73
74
#endif  // CONST_RESOURCES_SPRITEACTION_H