//////////////////////////////////////////////////////////////////////////////
// This file is part of the Journey MMORPG client                           //
// Copyright © 2015-2016 Daniel Allendorf                                   //
//                                                                          //
// This program is free software: you can redistribute it and/or modify     //
// it under the terms of the GNU Affero General Public License as           //
// published by the Free Software Foundation, either version 3 of the       //
// License, or (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 Affero General Public License for more details.                      //
//                                                                          //
// You should have received a copy of the GNU Affero General Public License //
// along with this program.  If not, see <http://www.gnu.org/licenses/>.    //
//////////////////////////////////////////////////////////////////////////////
#pragma once
#include "../../Template/EnumMap.h"

#include <cstdint>
#include <string>

namespace jrc
{
    namespace Stance
    {
        enum Id : uint8_t
        {
            NONE,
            ALERT, DEAD, FLY, HEAL, JUMP, LADDER, PRONE, PRONESTAB,
            ROPE, SHOT, SHOOT1, SHOOT2, SHOOTF, SIT, STABO1, STABO2, STABOF,
            STABT1, STABT2, STABTF, STAND1, STAND2, SWINGO1, SWINGO2,
            SWINGO3, SWINGOF, SWINGP1, SWINGP2, SWINGPF, SWINGT1, SWINGT2,
            SWINGT3, SWINGTF, WALK1, WALK2,
            LENGTH
        };

        Id by_state(int8_t state);
        Id by_id(uint8_t id);
        Id by_string(const std::string& name);

        bool is_climbing(Id value);
        Id baseof(Id value);
        Id secondof(Id value);

        extern const EnumMap<Id, std::string> names;
    };
}
