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/

Player.cpp

Committer:
adelino
Date:
2015-04-05
Revision:
1:a74e42cf52b2

File content as of revision 1:a74e42cf52b2:

#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;
    
}
//-----------------------------------------------------