Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

Ignore:
Timestamp:
Nov 7, 2018, 10:44:00 AM (6 years ago)
Author:
stadlero
Message:

private variables added in player class

File:
1 edited

Legend:

Unmodified
Added
Removed
  • code/branches/wagnis_HS18/src/modules/wagnis/WagnisPlayer.cc

    r12069 r12080  
    1414
    1515    //Constructor
    16     WagnisPlayer::WagnisPlayer(Context* context) : OrxonoxClass(context){
     16    WagnisPlayer::WagnisPlayer(Context* context,WagnisGameboard* gb) : Baseclass(context){
    1717        RegisterObject(WagnisPlayer);
     18        this->origin = nullptr;
     19        this->target = nullptr;
     20        this->gameBoard = gb;
    1821    }
    1922    //Destructor
     
    2528       
    2629    }
     30    //checks if a move is valid
     31    bool WagnisPlayer::checkMove(WagnisGameboard*,WagnisProvince*,WagnisProvince*){
     32        return false;
     33    }
    2734    //
    28     void WagnisPlayer::setTroops(WagnisGameboard* gameBoard,WagnisProvince* prov){
     35    void WagnisPlayer::setTroops(WagnisGameboard* gameBoard,WagnisProvince* prov,MoveType type){
    2936
    3037    }
Note: See TracChangeset for help on using the changeset viewer.