]> Dogcows Code - chaz/thecheat/blob - SearchData.h
The Cheat 1.2.1
[chaz/thecheat] / SearchData.h
1
2 // **********************************************************************
3 // The Cheat - A universal game cheater for Mac OS X
4 // (C) 2003-2005 Chaz McGarvey (BrokenZipper)
5 //
6 // This program is free software; you can redistribute it and/or modify
7 // it under the terms of the GNU General Public License as published by
8 // the Free Software Foundation; either version 1, or (at your option)
9 // any later version.
10 //
11 // This program is distributed in the hope that it will be useful,
12 // but WITHOUT ANY WARRANTY; without even the implied warranty of
13 // MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
14 // GNU General Public License for more details.
15 //
16 // You should have received a copy of the GNU General Public License
17 // along with this program; if not, write to the Free Software
18 // Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
19 //
20
21
22 #import <Cocoa/Cocoa.h>
23
24 #import "CheaterTypes.h"
25
26 #import "Cheater.h"
27 #import "Variable.h"
28
29
30 @interface SearchData : NSObject
31 {
32 TCVariableType _variableType;
33 TCIntegerSign _integerSign;
34 TCSearchOperator _operator;
35 TCSearchType _value;
36
37 Variable *_variableValue;
38
39 TCArray _addresses;
40 TCArray _values;
41
42 Process *_process;
43
44 int _undoes;
45 int _redoes;
46 }
47
48 // ACCESSORS
49 - (TCVariableType)variableType;
50 - (void)setVariableType:(TCVariableType)varType;
51
52 - (TCIntegerSign)integerSign;
53 - (void)setIntegerSign:(TCIntegerSign)sign;
54
55 - (TCSearchOperator)searchOperator;
56 - (void)setSearchOperator:(TCSearchOperator)op;
57
58 - (TCSearchType)valueUsed;
59 - (void)setValueUsed:(TCSearchType)value;
60
61 - (Variable *)searchValue;
62 - (void)setSearchValue:(Variable *)value;
63
64 - (unsigned)numberOfResults;
65 - (TCArray)addresses;
66 - (void)setAddresses:(TCArray)addresses;
67 - (TCArray)values;
68 - (void)setValues:(TCArray)values;
69 - (void)setValue:(Variable *)value atIndex:(unsigned)index;
70 - (BOOL)valuesLoaded;
71 - (Variable *)variableAtIndex:(unsigned)index;
72 - (NSString *)stringForRow:(unsigned)rowIndex;
73
74 - (BOOL)hasSearchedOnce;
75
76 - (int)undoesLeft;
77 - (int)redoesLeft;
78 - (void)didAddResults;
79 - (void)didUndo;
80 - (void)didRedo;
81
82 // this is convenient
83 - (BOOL)isTypeInteger;
84
85 // ACTIONS
86 - (void)clearResults;
87
88
89 @end
This page took 0.035475 seconds and 5 git commands to generate.