You cannot select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
openmw-tes3coop/apps/openmw-mp/CharClass.hpp

49 lines
1.1 KiB
C++

//
// Created by koncord on 12.08.17.
//
#pragma once
#include <string>
#include <tuple>
#include "BaseMgr.hpp"
class LuaState;
class Player;
class CharClass final: public BaseMgr
{
public:
static void Init(LuaState &lua);
public:
explicit CharClass(Player *player);
std::string getDefault() const;
void setDefault(const std::string &className);
bool isCustom() const;
std::string getName() const;
void setName(const std::string &className);
std::string getDescription() const;
void setDescription(const std::string &desc);
std::tuple<int, int> getMajorAttributes() const;
void setMajorAttributes(int first, int second);
int getSpecialization() const;
void setSpecialization(int spec);
std::tuple<int, int, int, int, int> getMinorSkills() const;
void setMinorSkills(int fisrt, int second, int third, int fourth, int fifth);
std::tuple<int, int, int, int, int> getMajorSkills() const;
void setMajorSkills(int fisrt, int second, int third, int fourth, int fifth);
private:
void processUpdate() final;
};