]> Dogcows Code - chaz/thecheat/blob - CheatData.h
update contact information and project URL
[chaz/thecheat] / CheatData.h
1
2 /*
3 * The Cheat - The legendary universal game trainer for Mac OS X.
4 * http://www.brokenzipper.com/trac/wiki/TheCheat
5 *
6 * Copyright (c) 2003-2011, Charles McGarvey et al.
7 *
8 * Distributable under the terms and conditions of the 2-clause BSD
9 * license; see the file COPYING for the legal text of the license.
10 */
11
12 #import <Cocoa/Cocoa.h>
13
14 #import "Process.h"
15 #import "Variable.h"
16
17
18 @interface CheatData : NSObject < NSCoding >
19 {
20 NSString *myWindowTitle;
21 NSString *myCheatInfo;
22
23 Process *myProcess;
24 NSMutableArray *myVariables;
25
26 BOOL myRepeats;
27 NSTimeInterval myRepeatInterval;
28 }
29
30 // #############################################################################
31 #pragma mark NSCoding
32 // #############################################################################
33
34 - (id)initWithCoder:(NSCoder *)coder;
35 - (void)encodeWithCoder:(NSCoder *)coder;
36
37
38 // #############################################################################
39 #pragma mark Accessing Properties
40 // #############################################################################
41
42 - (NSString *)windowTitle;
43 - (NSString *)cheatInfo;
44 - (NSString *)gameName;
45 - (NSString *)gameVersion;
46 - (Process *)process;
47 - (BOOL)repeats;
48 - (NSTimeInterval)repeatInterval;
49
50 - (void)setWindowTitle:(NSString *)title;
51 - (void)setCheatInfo:(NSString *)info;
52 - (void)setProcess:(Process *)process;
53 - (void)setRepeats:(BOOL)repeats;
54 - (void)setRepeatInterval:(NSTimeInterval)interval;
55
56
57 // #############################################################################
58 #pragma mark Variables
59 // #############################################################################
60
61 - (NSArray *)variables;
62 - (unsigned)variableCount;
63 - (unsigned)indexOfVariable:(Variable *)variable;
64 - (Variable *)variableAtIndex:(unsigned)index;
65 - (Variable *)lastVariable;
66
67 - (void)addVariable:(Variable *)variable;
68 - (void)insertVariable:(Variable *)variable atIndex:(unsigned)index;
69
70 - (void)removeAllVariables;
71 - (void)removeVariable:(Variable *)variable;
72 - (void)removeVariableAtIndex:(unsigned)index;
73
74 - (NSArray *)enabledVariables;
75 - (unsigned)enabledVariableCount;
76
77
78 @end
This page took 0.03294 seconds and 4 git commands to generate.