#include <nesrawcode.hh>
Definition at line 35 of file nesrawcode.hh.
Public Member Functions | |
NESRawCode (int address, int value, int compare) | |
Constructor for an NESRawCode with a compare value. | |
NESRawCode (int address, int value) | |
Constructor for an NESRawCode with no compare value. | |
void | setAddress (int address) |
Sets the address of this RawCode. | |
void | setValue (int value) |
Sets the value of this RawCode. | |
virtual int | getAddress () const |
Gets the address of this RawCode. | |
virtual int | getValue () const |
Gets the value of this RawCode. | |
bool | hasCompare () const |
Checks if this CompareRawCode uses a compare value. | |
int | getCompare () const |
Gets the compare value of this CompareRawCode. | |
void | setCompare (int compare) |
Sets the compare value of this CompareRawCode. | |
Protected Attributes | |
int | address |
int | value |
int | compare |
NESRawCode::NESRawCode | ( | int | address, | |
int | value, | |||
int | compare | |||
) |
Constructor for an NESRawCode with a compare value.
address | The code's address. | |
value | The code's value. | |
compare | The code's compare value. |
Definition at line 29 of file nesrawcode.cc.
NESRawCode::NESRawCode | ( | int | address, | |
int | value | |||
) |
Constructor for an NESRawCode with no compare value.
address | The code's address. | |
value | The code's value. |
Definition at line 35 of file nesrawcode.cc.
void NESRawCode::setAddress | ( | int | address | ) | [virtual] |
Sets the address of this RawCode.
address | The new address. |
Implements ggencoder::RawCode.
Definition at line 42 of file nesrawcode.cc.
void NESRawCode::setValue | ( | int | value | ) | [virtual] |
Sets the value of this RawCode.
value | The new value. |
Implements ggencoder::RawCode.
Definition at line 46 of file nesrawcode.cc.
int ggencoder::RawCode::getAddress | ( | ) | const [inline, virtual, inherited] |
int ggencoder::RawCode::getValue | ( | ) | const [inline, virtual, inherited] |
bool ggencoder::CompareRawCode::hasCompare | ( | ) | const [inline, inherited] |
Checks if this CompareRawCode uses a compare value.
Definition at line 59 of file comparerawcode.hh.
int ggencoder::CompareRawCode::getCompare | ( | ) | const [inline, inherited] |
Gets the compare value of this CompareRawCode.
Definition at line 61 of file comparerawcode.hh.
void ggencoder::CompareRawCode::setCompare | ( | int | compare | ) | [inline, inherited] |
Sets the compare value of this CompareRawCode.
compare | The new compare value. |
Definition at line 63 of file comparerawcode.hh.
int ggencoder::RawCode::address [protected, inherited] |
Definition at line 34 of file rawcode.hh.
int ggencoder::RawCode::value [protected, inherited] |
Definition at line 35 of file rawcode.hh.
int ggencoder::CompareRawCode::compare [protected, inherited] |
Definition at line 34 of file comparerawcode.hh.