]> Dogcows Code - chaz/thecheat/blob - SearchData.h
update contact information and project URL
[chaz/thecheat] / SearchData.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
13 #import <Cocoa/Cocoa.h>
14
15 #import "CheaterTypes.h"
16
17 #import "Cheater.h"
18 #import "Variable.h"
19
20 #import "Process.h"
21
22 @interface SearchData : NSObject
23 {
24 TCVariableType _variableType;
25 TCIntegerSign _integerSign;
26 TCSearchOperator _operator;
27 TCSearchType _value;
28
29 Variable *_variableValue;
30
31 TCArray _addresses;
32 TCArray _values;
33
34 Process *_process;
35
36 int _undoes;
37 int _redoes;
38 }
39
40 // ACCESSORS
41 - (void)setProcess:(Process *)process;
42
43 - (TCVariableType)variableType;
44 - (void)setVariableType:(TCVariableType)varType;
45
46 - (TCIntegerSign)integerSign;
47 - (void)setIntegerSign:(TCIntegerSign)sign;
48
49 - (TCSearchOperator)searchOperator;
50 - (void)setSearchOperator:(TCSearchOperator)op;
51
52 - (TCSearchType)valueUsed;
53 - (void)setValueUsed:(TCSearchType)value;
54
55 - (Variable *)searchValue;
56 - (void)setSearchValue:(Variable *)value;
57
58 - (unsigned)numberOfResults;
59 - (TCArray)addresses;
60 - (void)setAddresses:(TCArray)addresses;
61 - (TCArray)values;
62 - (void)setValues:(TCArray)values;
63 - (void)setValue:(Variable *)value atIndex:(unsigned)index;
64 - (BOOL)valuesLoaded;
65 - (Variable *)variableAtIndex:(unsigned)index;
66 - (NSString *)stringForRow:(unsigned)rowIndex;
67
68 - (BOOL)hasSearchedOnce;
69
70 - (int)undoesLeft;
71 - (int)redoesLeft;
72 - (void)didAddResults;
73 - (void)didUndo;
74 - (void)didRedo;
75
76 // this is convenient
77 - (BOOL)isTypeInteger;
78
79 // ACTIONS
80 - (void)clearResults;
81
82
83 @end
This page took 0.034001 seconds and 5 git commands to generate.