X-Git-Url: https://git.dogcows.com/gitweb?p=chaz%2Fthecheat;a=blobdiff_plain;f=CheatData.h;fp=CheatData.h;h=9c9b776b2a2a7354b04796de79eec19b8cef291d;hp=0000000000000000000000000000000000000000;hb=d27548f80fe411fda2ee69c74a24eab4292267e9;hpb=e8d51183acdd2410a38dcf8f0efbf7c30cd6c581 diff --git a/CheatData.h b/CheatData.h new file mode 100644 index 0000000..9c9b776 --- /dev/null +++ b/CheatData.h @@ -0,0 +1,87 @@ + +// ********************************************************************** +// The Cheat - A universal game cheater for Mac OS X +// (C) 2003-2005 Chaz McGarvey (BrokenZipper) +// +// This program is free software; you can redistribute it and/or modify +// it under the terms of the GNU General Public License as published by +// the Free Software Foundation; either version 1, or (at your option) +// any later version. +// +// This program is distributed in the hope that it will be useful, +// but WITHOUT ANY WARRANTY; without even the implied warranty of +// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +// GNU General Public License for more details. +// +// You should have received a copy of the GNU General Public License +// along with this program; if not, write to the Free Software +// Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA. +// + +#import + +#import "Process.h" +#import "Variable.h" + + +@interface CheatData : NSObject < NSCoding > +{ + NSString *myWindowTitle; + NSString *myCheatInfo; + + Process *myProcess; + NSMutableArray *myVariables; + + BOOL myRepeats; + NSTimeInterval myRepeatInterval; +} + +// ############################################################################# +#pragma mark NSCoding +// ############################################################################# + +- (id)initWithCoder:(NSCoder *)coder; +- (void)encodeWithCoder:(NSCoder *)coder; + + +// ############################################################################# +#pragma mark Accessing Properties +// ############################################################################# + +- (NSString *)windowTitle; +- (NSString *)cheatInfo; +- (NSString *)gameName; +- (NSString *)gameVersion; +- (Process *)process; +- (BOOL)repeats; +- (NSTimeInterval)repeatInterval; + +- (void)setWindowTitle:(NSString *)title; +- (void)setCheatInfo:(NSString *)info; +- (void)setProcess:(Process *)process; +- (void)setRepeats:(BOOL)repeats; +- (void)setRepeatInterval:(NSTimeInterval)interval; + + +// ############################################################################# +#pragma mark Variables +// ############################################################################# + +- (NSArray *)variables; +- (unsigned)variableCount; +- (unsigned)indexOfVariable:(Variable *)variable; +- (Variable *)variableAtIndex:(unsigned)index; +- (Variable *)lastVariable; + +- (void)addVariable:(Variable *)variable; +- (void)insertVariable:(Variable *)variable atIndex:(unsigned)index; + +- (void)removeAllVariables; +- (void)removeVariable:(Variable *)variable; +- (void)removeVariableAtIndex:(unsigned)index; + +- (NSArray *)enabledVariables; +- (unsigned)enabledVariableCount; + + +@end