]> git.localhorst.tv Git - l2e.git/blob - battle/BattleTest.h
new language, new compiler
[l2e.git] / battle / BattleTest.h
1 #ifndef TEST_BATTLE_BATTLETEST_H_
2 #define TEST_BATTLE_BATTLETEST_H_
3
4 namespace battle {
5         class Battle;
6         class PartyLayout;
7 }
8
9 #include "../../src/battle/Monster.h"
10 #include "../../src/common/Capsule.h"
11 #include "../../src/common/Hero.h"
12 #include "../../src/math/Vector.h"
13
14 #include <cppunit/extensions/HelperMacros.h>
15
16
17 namespace test_battle {
18
19 class BattleTest
20 : public CppUnit::TestFixture {
21         CPPUNIT_TEST_SUITE(BattleTest);
22         CPPUNIT_TEST(testSetup);
23         CPPUNIT_TEST(testHeroAttackSelection);
24         CPPUNIT_TEST(testBattleRound);
25         CPPUNIT_TEST_SUITE_END();
26
27 public:
28         void setUp();
29         void tearDown();
30
31         void testSetup();
32         void testHeroAttackSelection();
33         void testBattleRound();
34
35 private:
36         void loadBattle(battle::Battle &);
37         void selectHeroAttacks(battle::Battle &);
38
39 private:
40         battle::PartyLayout *twoLayout;
41         battle::PartyLayout *fiveLayout;
42         math::Vector<int> positions[7];
43
44         common::Capsule capsule;
45         common::Hero hero;
46         battle::Monster monster;
47
48 };
49
50 }
51
52 #endif