-
Notifications
You must be signed in to change notification settings - Fork 13
/
CheatData.h
78 lines (57 loc) · 2.06 KB
/
CheatData.h
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
/*
* The Cheat - The legendary universal game trainer for Mac OS X.
* http://www.brokenzipper.com/trac/wiki/TheCheat
*
* Copyright (c) 2003-2011, Charles McGarvey et al.
*
* Distributable under the terms and conditions of the 2-clause BSD
* license; see the file COPYING for the legal text of the license.
*/
#import <Cocoa/Cocoa.h>
#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