Setters for player and ball old registers.

This commit is contained in:
Christian Speckner 2017-04-25 22:58:05 +02:00
parent bd74b7de38
commit 24e449c5d4
4 changed files with 22 additions and 0 deletions

View File

@ -203,6 +203,15 @@ void Ball::tick(bool isReceivingMclock)
myCounter = 0;
}
// - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
void Ball::setENABLOld(bool enabled)
{
myTIA->flushLineCache();
myIsEnabledOld = enabled;
updateEnabled();
}
// - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
void Ball::shuffleStatus()
{

View File

@ -74,6 +74,8 @@ class Ball : public Serializable
bool getENABLOld() const { return myIsEnabledOld; }
bool getENABLNew() const { return myIsEnabledNew; }
void setENABLOld(bool enabled);
/**
Serializable methods (see that class for more information).
*/

View File

@ -336,6 +336,15 @@ uInt8 Player::getRespClock() const
}
}
// - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
void Player::setGRPOld(uInt8 pattern)
{
myTIA->flushLineCache();
myPatternOld = pattern;
updatePattern();
}
// - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
void Player::updatePattern()
{

View File

@ -78,6 +78,8 @@ class Player : public Serializable
uInt8 getGRPOld() const { return myPatternOld; };
uInt8 getGRPNew() const { return myPatternNew; };
void setGRPOld(uInt8 pattern);
/**
Serializable methods (see that class for more information).
*/