ggencoder::NESRawCode Class Reference

#include <nesrawcode.hh>

Inheritance diagram for ggencoder::NESRawCode:

ggencoder::RawCode ggencoder::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

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

Sets the address of this RawCode.

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

Parameters:
value The new value.

Implements ggencoder::RawCode.

Definition at line 46 of file nesrawcode.cc.

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

Gets the address of this RawCode.

Returns:
The address.

Definition at line 73 of file rawcode.hh.

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

Gets the value of this RawCode.

Returns:
The value.

Definition at line 74 of file rawcode.hh.

bool ggencoder::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.

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

Gets the compare value of this CompareRawCode.

Returns:
The compare value.

Definition at line 61 of file comparerawcode.hh.

void ggencoder::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.


Member Data Documentation

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.


Generated on Thu Dec 18 01:01:25 2008 for Game Genie Encoder/Decoder by  doxygen 1.5.4