#include "DBCStores.h"
#include "Formulas.h"
#include "WorldMock.h"
#include "gtest/gtest.h"
Go to the source code of this file.
|
| TEST (FormulasTest, hk_honor_at_level) |
|
| TEST (FormulasTest, GetGrayLevel) |
|
| TEST (FormulasTest, GetColorCode) |
|
| TEST (FormulasTest, GetZeroDifference) |
|
| TEST (FormulasTest, BaseGain) |
|
| TEST (FormulasTest, Gain) |
|
◆ TEST() [1/6]
TEST |
( |
FormulasTest |
, |
|
|
BaseGain |
|
|
) |
| |
92{
98
99
101}
ContentLevels
Definition: DBCStores.h:41
@ CONTENT_61_70
Definition: DBCStores.h:43
@ CONTENT_71_80
Definition: DBCStores.h:44
@ CONTENT_1_60
Definition: DBCStores.h:42
uint32 BaseGain(uint8 pl_level, uint8 mob_level, ContentLevels content)
Definition: Formulas.cpp:25
References Acore::XP::BaseGain(), CONTENT_1_60, CONTENT_61_70, and CONTENT_71_80.
◆ TEST() [2/6]
TEST |
( |
FormulasTest |
, |
|
|
Gain |
|
|
) |
| |
- Todo:
- : create mocks of Player and Creature
104{
106 sWorld.reset((worldMock));
108
109}
#define sWorld
Definition: World.h:443
Definition: WorldMock.h:32
References sWorld.
◆ TEST() [3/6]
TEST |
( |
FormulasTest |
, |
|
|
GetColorCode |
|
|
) |
| |
50{
61}
@ XP_GREEN
Definition: SharedDefines.h:3581
@ XP_GRAY
Definition: SharedDefines.h:3582
@ XP_YELLOW
Definition: SharedDefines.h:3580
@ XP_RED
Definition: SharedDefines.h:3578
@ XP_ORANGE
Definition: SharedDefines.h:3579
XPColorChar GetColorCode(uint8 pl_level, uint8 mob_level)
Definition: Formulas.h:63
References Acore::XP::GetColorCode(), XP_GRAY, XP_GREEN, XP_ORANGE, XP_RED, and XP_YELLOW.
◆ TEST() [4/6]
TEST |
( |
FormulasTest |
, |
|
|
GetGrayLevel |
|
|
) |
| |
◆ TEST() [5/6]
TEST |
( |
FormulasTest |
, |
|
|
GetZeroDifference |
|
|
) |
| |
◆ TEST() [6/6]
TEST |
( |
FormulasTest |
, |
|
|
hk_honor_at_level |
|
|
) |
| |