Library for 3.2'' uLcd Picaso Display4D system Picaso Serial Environment Command Set web: http://www.4dsystems.com.au/product/20/67/Processors_Graphics/PICASO/
Diff: Player.cpp
- Revision:
- 1:a74e42cf52b2
--- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/Player.cpp Sun Apr 05 13:54:48 2015 +0000 @@ -0,0 +1,66 @@ +#include "Player.h" + +//---------------------------------------------- +Player::Player(string _strName):myName(_strName) +{ + myLives=0; + myScore=0; + myCount=0; +} +//------------------------------------------------ +Player::~Player(void) +{ +} +//------------------------------------------------ +string Player::getName(void)const +{ + /* + for(int i=0;i<10;i++) + { + str[i]=myName[i]; + } + */ + return myName; +} +//------------------------------------------------ +int Player::getLives(void) const +{ + return this->myLives; + } +//------------------------------------------------- +int Player::getScore(void) const +{ + return this->myScore; +} +//-------------------------------------------------- +int Player::getCount(void) const +{ + return this->myCount; +} +//----------------------------------------------------- +void Player::setLives(int _lives) +{ + myLives=_lives; +} +//---------------------------------------------------- +void Player::setScore(int _score) +{ + myScore=_score; +} +//----------------------------------------------------- +void Player::setCount(int _count) +{ + myCount=_count; +} +//----------------------------------------------------- +void Player::incCount(void) +{ + myCount=myCount+1; +} +//----------------------------------------------------- +void Player::decLives(void) +{ + myLives=myLives-1; + +} +//-----------------------------------------------------