Last change
on this file since 12086 was
12080,
checked in by stadlero, 6 years ago
|
private variables added in player class
|
File size:
1.2 KB
|
Line | |
---|
1 | |
---|
2 | |
---|
3 | |
---|
4 | |
---|
5 | |
---|
6 | |
---|
7 | #include "WagnisPlayer.h" |
---|
8 | #include <vector> |
---|
9 | #include <string> |
---|
10 | |
---|
11 | namespace orxonox |
---|
12 | { |
---|
13 | RegisterClass(WagnisPlayer); |
---|
14 | |
---|
15 | //Constructor |
---|
16 | WagnisPlayer::WagnisPlayer(Context* context,WagnisGameboard* gb) : Baseclass(context){ |
---|
17 | RegisterObject(WagnisPlayer); |
---|
18 | this->origin = nullptr; |
---|
19 | this->target = nullptr; |
---|
20 | this->gameBoard = gb; |
---|
21 | } |
---|
22 | //Destructor |
---|
23 | WagnisPlayer::~WagnisPlayer(){ |
---|
24 | |
---|
25 | } |
---|
26 | //Manages a Players turn |
---|
27 | void WagnisPlayer::playerTurn(WagnisGameboard* gameBoard){ |
---|
28 | |
---|
29 | } |
---|
30 | //checks if a move is valid |
---|
31 | bool WagnisPlayer::checkMove(WagnisGameboard*,WagnisProvince*,WagnisProvince*){ |
---|
32 | return false; |
---|
33 | } |
---|
34 | // |
---|
35 | void WagnisPlayer::setTroops(WagnisGameboard* gameBoard,WagnisProvince* prov,MoveType type){ |
---|
36 | |
---|
37 | } |
---|
38 | void WagnisPlayer::attack(WagnisGameboard* gameBoard,WagnisProvince* own,WagnisProvince* target){ |
---|
39 | |
---|
40 | } |
---|
41 | void WagnisPlayer::moveTroops(WagnisGameboard* gameBoard,WagnisProvince* current,WagnisProvince* target){ |
---|
42 | |
---|
43 | } |
---|
44 | //Return a "Player x" String |
---|
45 | std::string WagnisPlayer::toString(){ |
---|
46 | std::string str = "Player "; |
---|
47 | str.append(std::to_string(Player_ID); |
---|
48 | return str; |
---|
49 | } |
---|
50 | } |
---|
Note: See
TracBrowser
for help on using the repository browser.