GameServer
Prog
AnpanMMO
Server
AnpanMMOServer
Math
DamageCalcUnit.h
[詳解]
1
6
#ifndef __DAMAGECALCUNIT_H__
7
#define __DAMAGECALCUNIT_H__
8
9
#include "
Character/CharacterParameter.h
"
10
11
struct
SkillItem
;
12
17
class
DamageCalcUnit
18
{
19
20
public
:
21
28
DamageCalcUnit
(
const
CharacterParameter
&InAttackerParam,
const
CharacterParameter
&InDefencerParam,
const
SkillItem
*pInSkillParam);
29
33
~DamageCalcUnit
() {}
34
40
int
Calc
()
const
;
41
42
private
:
43
44
// 補正最大値.
45
static
const
int
CorrectionMaxValue;
46
47
// クリティカル発生率.
48
static
const
int
CriticalRate;
49
50
// 攻撃側パラメータ
51
CharacterParameter
AttackerParam;
52
53
// 防御側パラメータ
54
CharacterParameter
DefencerParam;
55
56
// スキルパラメータ
57
const
SkillItem
*pSkillParam;
58
59
};
60
61
#endif // #ifndef __DAMAGECALCUNIT_H__
DamageCalcUnit::DamageCalcUnit
DamageCalcUnit(const CharacterParameter &InAttackerParam, const CharacterParameter &InDefencerParam, const SkillItem *pInSkillParam)
コンストラクタ
Definition:
DamageCalcUnit.cpp:15
CharacterParameter
キャラクタパラメータ
Definition:
CharacterParameter.h:15
DamageCalcUnit
ダメージ計算クラス.
Definition:
DamageCalcUnit.h:17
CharacterParameter.h
キャラクタパラメータ
SkillItem
Definition:
SkillMaster.h:9
DamageCalcUnit::~DamageCalcUnit
~DamageCalcUnit()
デストラクタ
Definition:
DamageCalcUnit.h:33
DamageCalcUnit::Calc
int Calc() const
計算
Definition:
DamageCalcUnit.cpp:23
構築:
1.8.14