emuWorks::NESRawCode Class Reference

#include <nesrawcode.hh>

Inheritance diagram for emuWorks::NESRawCode:

emuWorks::RawCode emuWorks::CompareRawCode List of all members.

Detailed Description

Implementation of an NES raw hex code.

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


Constructor & Destructor Documentation

NESRawCode::NESRawCode ( int  address,
int  value,
int  compare 
)

Constructor for an NESRawCode with a compare value.

Parameters:
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.

Parameters:
address The code's address.
value The code's value.

Definition at line 35 of file nesrawcode.cc.


Member Function Documentation

int emuWorks::RawCode::getAddress (  )  const [inline, virtual, inherited]

Gets the address of this RawCode.

Returns:
The address.

Definition at line 73 of file rawcode.hh.

int emuWorks::CompareRawCode::getCompare (  )  const [inline, inherited]

Gets the compare value of this CompareRawCode.

Returns:
The compare value.

Definition at line 61 of file comparerawcode.hh.

int emuWorks::RawCode::getValue (  )  const [inline, virtual, inherited]

Gets the value of this RawCode.

Returns:
The value.

Definition at line 74 of file rawcode.hh.

bool emuWorks::CompareRawCode::hasCompare (  )  const [inline, inherited]

Checks if this CompareRawCode uses a compare value.

Returns:
true if a compare is used; false otherwise.

Definition at line 59 of file comparerawcode.hh.

void NESRawCode::setAddress ( int  address  )  [virtual]

Sets the address of this RawCode.

Parameters:
address The new address.

Implements emuWorks::RawCode.

Definition at line 42 of file nesrawcode.cc.

void emuWorks::CompareRawCode::setCompare ( int  compare  )  [inline, inherited]

Sets the compare value of this CompareRawCode.

Parameters:
compare The new compare value.

Definition at line 63 of file comparerawcode.hh.

void NESRawCode::setValue ( int  value  )  [virtual]

Sets the value of this RawCode.

Parameters:
value The new value.

Implements emuWorks::RawCode.

Definition at line 46 of file nesrawcode.cc.


Member Data Documentation

int emuWorks::RawCode::address [protected, inherited]

Definition at line 34 of file rawcode.hh.

int emuWorks::CompareRawCode::compare [protected, inherited]

Definition at line 34 of file comparerawcode.hh.

int emuWorks::RawCode::value [protected, inherited]

Definition at line 35 of file rawcode.hh.


Generated on Sat Aug 19 11:57:23 2006 for Game Genie Encoder/Decoder by  doxygen 1.4.7