00001 #include "PlayerActionCG.h" 00002 00003 // default constructor 00004 PlayerActionCG::PlayerActionCG() 00005 { 00006 this->actionType = NO_ACTION; 00007 this->teammateIndex = -1; 00008 } 00009 00010 PlayerActionTypeCG PlayerActionCG::getActionType() 00011 { 00012 return this->actionType; 00013 } 00014 00015 void PlayerActionCG::setActionType(PlayerActionTypeCG actionType) 00016 { 00017 this->actionType = actionType; 00018 } 00019 00020 DirCG PlayerActionCG::getDirection() 00021 { 00022 return this->direction; 00023 } 00024 00025 void PlayerActionCG::setDirection(DirCG direction) 00026 { 00027 this->direction = direction; 00028 } 00029 00030 int PlayerActionCG::getTeammateIndex() 00031 { 00032 return this->teammateIndex; 00033 } 00034 00035 void PlayerActionCG::setTeammateIndex(int teammateIndex) 00036 { 00037 this->teammateIndex = teammateIndex; 00038 }