nesrawcode.hh

Go to the documentation of this file.
00001 /*
00002  * Game Genie Encoder/Decoder
00003  * Copyright (C) 2004-2006,2008 emuWorks
00004  * http://games.technoplaza.net/
00005  *
00006  * This file is part of Game Genie Encoder/Decoder.
00007  *
00008  * Game Genie Encoder/Decoder is free software; you can redistribute it and/or
00009  * modify it under the terms of the GNU General Public License as published by
00010  * the Free Software Foundation; either version 2 of the License, or
00011  * (at your option) any later version.
00012  *
00013  * Game Genie Encoder/Decoder is distributed in the hope that it will be useful,
00014  * but WITHOUT ANY WARRANTY; without even the implied warranty of
00015  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
00016  * GNU General Public License for more details.
00017  *
00018  * You should have received a copy of the GNU General Public License
00019  * along with Game Genie Encoder/Decoder; if not, write to the Free Software
00020  * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA  02110-1301  USA
00021  */
00022  
00023 // $Id: nesrawcode.hh,v 1.8 2008/12/18 03:23:30 jdratlif Exp $
00024 
00025 #ifndef GGENCODER_NESRAWCODE_HH_
00026 #define GGENCODER_NESRAWCODE_HH_
00027 
00028 #include "model/comparerawcode.hh"
00029 #include "model/rawcode.hh"
00030 
00031 namespace ggencoder {
00032     /**
00033      * Implementation of an NES raw hex code.
00034      */
00035     class NESRawCode : public RawCode, public CompareRawCode {
00036     public:
00037         /**
00038          * Constructor for an NESRawCode with a compare value.
00039          *
00040          * @param address The code's address.
00041          * @param value The code's value.
00042          * @param compare The code's compare value.
00043          */
00044         NESRawCode(int address, int value, int compare);
00045         
00046         /**
00047          * Constructor for an NESRawCode with no compare value.
00048          *
00049          * @param address The code's address.
00050          * @param value The code's value.
00051          */
00052         NESRawCode(int address, int value);
00053         
00054         /**
00055          * Sets the address of this RawCode.
00056          *
00057          * @param address The new address.
00058          */
00059         void setAddress(int address);
00060         
00061         /**
00062          * Sets the value of this RawCode.
00063          *
00064          * @param value The new value.
00065          */
00066         void setValue(int value);
00067     };
00068 }
00069 
00070 #endif
00071 

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