1 //----------------------------------------------------------------------------- |
|
2 // |
|
3 // Skulltag Source |
|
4 // Copyright (C) 2002 Brad Carney |
|
5 // Copyright (C) 2007-2012 Skulltag Development Team |
|
6 // All rights reserved. |
|
7 // |
|
8 // Redistribution and use in source and binary forms, with or without |
|
9 // modification, are permitted provided that the following conditions are met: |
|
10 // |
|
11 // 1. Redistributions of source code must retain the above copyright notice, |
|
12 // this list of conditions and the following disclaimer. |
|
13 // 2. Redistributions in binary form must reproduce the above copyright notice, |
|
14 // this list of conditions and the following disclaimer in the documentation |
|
15 // and/or other materials provided with the distribution. |
|
16 // 3. Neither the name of the Skulltag Development Team nor the names of its |
|
17 // contributors may be used to endorse or promote products derived from this |
|
18 // software without specific prior written permission. |
|
19 // 4. Redistributions in any form must be accompanied by information on how to |
|
20 // obtain complete source code for the software and any accompanying |
|
21 // software that uses the software. The source code must either be included |
|
22 // in the distribution or be available for no more than the cost of |
|
23 // distribution plus a nominal fee, and must be freely redistributable |
|
24 // under reasonable conditions. For an executable file, complete source |
|
25 // code means the source code for all modules it contains. It does not |
|
26 // include source code for modules or files that typically accompany the |
|
27 // major components of the operating system on which the executable file |
|
28 // runs. |
|
29 // |
|
30 // THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" |
|
31 // AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE |
|
32 // IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE |
|
33 // ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE |
|
34 // LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR |
|
35 // CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF |
|
36 // SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS |
|
37 // INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN |
|
38 // CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) |
|
39 // ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE |
|
40 // POSSIBILITY OF SUCH DAMAGE. |
|
41 // |
|
42 // Date created: 5/18/04 |
|
43 // |
|
44 // |
|
45 // Filename: botcommands.h |
|
46 // |
|
47 // Description: Contains bot structures and prototypes |
|
48 // [Dusk] Clipped stuff that botc doesn't need. |
|
49 // |
|
50 //----------------------------------------------------------------------------- |
|
51 |
|
52 #ifndef BOTC_BOTCOMMANDS_H |
|
53 #define BOTC_BOTCOMMANDS_H |
|
54 |
|
55 #include "bots.h" |
|
56 |
|
57 //***************************************************************************** |
|
58 // DEFINES |
|
59 |
|
60 // This is the size of the return string for the bot command functions. |
|
61 #define BOTCMD_RETURNSTRING_SIZE 256 |
|
62 |
|
63 //***************************************************************************** |
|
64 typedef enum |
|
65 { |
|
66 BOTCMD_CHANGESTATE, // Basic botcmd utility functions. |
|
67 BOTCMD_DELAY, |
|
68 BOTCMD_RAND, |
|
69 BOTCMD_STRINGSAREEQUAL, |
|
70 BOTCMD_LOOKFORPOWERUPS, // Search functions. |
|
71 BOTCMD_LOOKFORWEAPONS, |
|
72 BOTCMD_LOOKFORAMMO, |
|
73 BOTCMD_LOOKFORBASEHEALTH, |
|
74 BOTCMD_LOOKFORBASEARMOR, |
|
75 BOTCMD_LOOKFORSUPERHEALTH, |
|
76 BOTCMD_LOOKFORSUPERARMOR, /* 10 */ |
|
77 BOTCMD_LOOKFORPLAYERENEMIES, |
|
78 BOTCMD_GETCLOSESTPLAYERENEMY, |
|
79 BOTCMD_MOVELEFT, // Movement functions. |
|
80 BOTCMD_MOVERIGHT, |
|
81 BOTCMD_MOVEFORWARD, |
|
82 BOTCMD_MOVEBACKWARDS, |
|
83 BOTCMD_STOPMOVEMENT, |
|
84 BOTCMD_STOPFORWARDMOVEMENT, |
|
85 BOTCMD_STOPSIDEWAYSMOVEMENT, |
|
86 BOTCMD_CHECKTERRAIN, /* 20 */ |
|
87 BOTCMD_PATHTOGOAL, // Pathing functions. |
|
88 BOTCMD_PATHTOLASTKNOWNENEMYPOSITION, |
|
89 BOTCMD_PATHTOLASTHEARDSOUND, |
|
90 BOTCMD_ROAM, |
|
91 BOTCMD_GETPATHINGCOSTTOITEM, |
|
92 BOTCMD_GETDISTANCETOITEM, |
|
93 BOTCMD_GETITEMNAME, |
|
94 BOTCMD_ISITEMVISIBLE, |
|
95 BOTCMD_SETGOAL, |
|
96 BOTCMD_BEGINAIMINGATENEMY, /* 30 */ // Aiming functions. |
|
97 BOTCMD_STOPAIMINGATENEMY, |
|
98 BOTCMD_TURN, |
|
99 BOTCMD_GETCURRENTANGLE, |
|
100 BOTCMD_SETENEMY, // Enemy functions. |
|
101 BOTCMD_CLEARENEMY, |
|
102 BOTCMD_ISENEMYALIVE, |
|
103 BOTCMD_ISENEMYVISIBLE, |
|
104 BOTCMD_GETDISTANCETOENEMY, |
|
105 BOTCMD_GETPLAYERDAMAGEDBY, |
|
106 BOTCMD_GETENEMYINVULNERABILITYTICKS, /* 40 */ |
|
107 BOTCMD_FIREWEAPON, // Weapon functions. |
|
108 BOTCMD_BEGINFIRINGWEAPON, |
|
109 BOTCMD_STOPFIRINGWEAPON, |
|
110 BOTCMD_GETCURRENTWEAPON, |
|
111 BOTCMD_CHANGEWEAPON, |
|
112 BOTCMD_GETWEAPONFROMITEM, |
|
113 BOTCMD_ISWEAPONOWNED, |
|
114 BOTCMD_ISFAVORITEWEAPON, |
|
115 BOTCMD_SAY, // Chat functions. |
|
116 BOTCMD_SAYFROMFILE, /* 50 */ |
|
117 BOTCMD_SAYFROMCHATFILE, |
|
118 BOTCMD_BEGINCHATTING, |
|
119 BOTCMD_STOPCHATTING, |
|
120 BOTCMD_CHATSECTIONEXISTS, |
|
121 BOTCMD_CHATSECTIONEXISTSINFILE, |
|
122 BOTCMD_GETLASTCHATSTRING, |
|
123 BOTCMD_GETLASTCHATPLAYER, |
|
124 BOTCMD_GETCHATFREQUENCY, |
|
125 BOTCMD_JUMP, // Jumping functions. |
|
126 BOTCMD_BEGINJUMPING, /* 60 */ |
|
127 BOTCMD_STOPJUMPING, |
|
128 BOTCMD_TAUNT, // Other action functions. |
|
129 BOTCMD_RESPAWN, |
|
130 BOTCMD_TRYTOJOINGAME, |
|
131 BOTCMD_ISDEAD, // Information about self functions. |
|
132 BOTCMD_ISSPECTATING, |
|
133 BOTCMD_GETHEALTH, |
|
134 BOTCMD_GETARMOR, |
|
135 BOTCMD_GETBASEHEALTH, |
|
136 BOTCMD_GETBASEARMOR, /* 70 */ |
|
137 BOTCMD_GETBOTSKILL, // Botskill functions. |
|
138 BOTCMD_GETACCURACY, |
|
139 BOTCMD_GETINTELLECT, |
|
140 BOTCMD_GETANTICIPATION, |
|
141 BOTCMD_GETEVADE, |
|
142 BOTCMD_GETREACTIONTIME, |
|
143 BOTCMD_GETPERCEPTION, |
|
144 BOTCMD_SETSKILLINCREASE, // Botskill modifying functions functions. |
|
145 BOTCMD_ISSKILLINCREASED, |
|
146 BOTCMD_SETSKILLDECREASE, /* 80 */ |
|
147 BOTCMD_ISSKILLDECREASED, |
|
148 BOTCMD_GETGAMEMODE, // Other functions. |
|
149 BOTCMD_GETSPREAD, |
|
150 BOTCMD_GETLASTJOINEDPLAYER, |
|
151 BOTCMD_GETPLAYERNAME, |
|
152 BOTCMD_GETRECEIVEDMEDAL, |
|
153 BOTCMD_ACS_EXECUTE, |
|
154 BOTCMD_GETFAVORITEWEAPON, |
|
155 BOTCMD_SAYFROMLUMP, |
|
156 BOTCMD_SAYFROMCHATLUMP, /* 90 */ |
|
157 BOTCMD_CHATSECTIONEXISTSINLUMP, |
|
158 BOTCMD_CHATSECTIONEXISTSINCHATLUMP, |
|
159 |
|
160 NUM_BOTCMDS |
|
161 |
|
162 } BOTCMD_e; |
|
163 |
|
164 #endif // BOTC_BOTCOMMANDS_H |
|