-
Notifications
You must be signed in to change notification settings - Fork 5
Expand file tree
/
Copy pathHero.h
More file actions
79 lines (73 loc) · 2.19 KB
/
Hero.h
File metadata and controls
79 lines (73 loc) · 2.19 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
//
// Hero.h
// Project Spitfire
//
// Copyright (c) 2013 Daizee (rensiadz at gmail dot com)
//
// This file is part of Spitfire.
//
// Permission is hereby granted, free of charge, to any person obtaining a copy of
// this software and associated documentation files (the "Software"), to deal in
// the Software without restriction, including without limitation the rights to
// use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of
// the Software, and to permit persons to whom the Software is furnished to do so,
// subject to the following conditions:
//
// The above copyright notice and this permission notice shall be included in all
// copies or substantial portions of the Software.
//
// THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
// IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS
// FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR
// COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER
// IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN
// CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
#pragma once
#include <string>
#include "funcs.h"
#include "structs.h"
#include "amf3.h"
class Hero
{
public:
Hero();
~Hero();
amf3object ToObject();
double m_experience;
uint64_t m_id;
int32_t m_itemamount; //?
int32_t m_itemid; //?
int16_t m_level;
string m_logourl;
int8_t m_loyalty;
int16_t m_basemanagement;
int16_t m_basepower;
int16_t m_basestratagem;
int16_t m_management;
int16_t m_managementadded;
int16_t m_managementbuffadded;
string m_name;
int16_t m_power;
int16_t m_poweradded;
int16_t m_powerbuffadded;
int16_t m_remainpoint;
int8_t m_status;
int16_t m_stratagem;
int16_t m_stratagemadded;
int16_t m_stratagembuffadded;
double m_upgradeexp;
stArmyMovement * movement;
inline int16_t GetManagement()
{
return m_management + m_managementadded + m_managementbuffadded;
}
inline int16_t GetPower()
{
return m_power + m_poweradded + m_powerbuffadded;
}
inline int16_t GetStratagem()
{
return m_stratagem + m_stratagemadded + m_stratagembuffadded;
}
//array of buffs
}; // 75 bytes