mirror of https://github.com/stella-emu/stella.git
Setters for player and ball old registers.
This commit is contained in:
parent
bd74b7de38
commit
24e449c5d4
|
@ -203,6 +203,15 @@ void Ball::tick(bool isReceivingMclock)
|
|||
myCounter = 0;
|
||||
}
|
||||
|
||||
// - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
|
||||
void Ball::setENABLOld(bool enabled)
|
||||
{
|
||||
myTIA->flushLineCache();
|
||||
|
||||
myIsEnabledOld = enabled;
|
||||
updateEnabled();
|
||||
}
|
||||
|
||||
// - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
|
||||
void Ball::shuffleStatus()
|
||||
{
|
||||
|
|
|
@ -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).
|
||||
*/
|
||||
|
|
|
@ -336,6 +336,15 @@ uInt8 Player::getRespClock() const
|
|||
}
|
||||
}
|
||||
|
||||
// - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
|
||||
void Player::setGRPOld(uInt8 pattern)
|
||||
{
|
||||
myTIA->flushLineCache();
|
||||
|
||||
myPatternOld = pattern;
|
||||
updatePattern();
|
||||
}
|
||||
|
||||
// - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
|
||||
void Player::updatePattern()
|
||||
{
|
||||
|
|
|
@ -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).
|
||||
*/
|
||||
|
|
Loading…
Reference in New Issue