00001 #include "Player.h" 00002 00003 Player::Player(int playerID) : 00004 _id(playerID) 00005 { 00006 } 00007 00008 00009 int Player::getID() 00010 { 00011 return _id; 00012 } 00013 00014 void Player::addUnit(spUnit unit) 00015 { 00016 _units.push_back(unit); 00017 } 00018 00019 spUnit Player::getNextUnit() 00020 { 00021 // for now returns the first unit in the unit vector 00022 return _units[0]; 00023 }