aboutsummaryrefslogtreecommitdiff
path: root/engines/hdb/ai-player.cpp
blob: 3eda52a41135e25e072085662cef37f896d0afe2 (plain)
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
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
601
602
603
604
605
606
607
608
609
610
611
612
613
614
615
616
617
618
619
620
621
622
623
624
625
626
627
628
629
630
631
632
633
634
635
636
637
638
639
640
641
642
643
644
645
646
647
648
649
650
651
652
653
654
655
656
657
658
659
660
661
662
663
664
665
666
667
668
669
670
671
672
673
674
675
676
677
678
679
680
681
682
683
684
685
686
687
688
689
690
691
692
693
694
695
696
697
698
699
700
701
702
703
704
705
706
707
708
709
710
711
712
713
714
715
716
717
718
719
720
721
722
723
724
725
726
727
728
729
730
731
732
733
734
735
736
737
738
739
740
741
742
743
744
745
746
747
748
749
750
751
752
753
754
755
756
757
758
759
760
761
762
763
764
765
766
767
768
769
770
771
772
773
774
775
776
777
778
779
780
781
782
783
784
785
786
787
788
789
790
791
792
793
794
795
796
797
798
799
800
801
802
803
804
805
806
807
808
809
810
811
812
813
814
815
816
817
818
819
820
821
822
823
824
825
826
827
828
829
830
831
832
833
834
835
836
837
838
839
840
841
842
843
844
845
846
847
848
849
850
851
852
853
854
855
856
857
858
859
860
861
862
863
864
865
866
867
868
869
870
871
872
873
874
875
876
877
878
879
880
881
882
883
884
885
886
887
888
889
890
891
892
893
894
895
896
897
898
899
900
901
902
903
904
905
906
907
908
909
910
911
912
913
914
915
916
917
918
919
920
921
922
923
924
925
926
927
928
929
930
931
932
933
934
935
936
937
938
939
940
941
942
943
944
945
946
947
948
949
950
951
952
953
954
955
956
957
958
959
960
961
962
963
964
965
966
967
968
969
970
971
972
973
974
975
976
977
978
979
980
981
982
983
984
985
986
987
988
989
990
991
992
993
994
995
996
997
998
999
1000
1001
1002
1003
1004
1005
1006
1007
1008
/* ScummVM - Graphic Adventure Engine
 *
 * ScummVM is the legal property of its developers, whose names
 * are too numerous to list here. Please refer to the COPYRIGHT
 * file distributed with this source distribution.
 *
 * This program is free software; you can redistribute it and/or
 * modify it under the terms of the GNU General Public License
 * as published by the Free Software Foundation; either version 2
 * of the License, or (at your option) any later version.
 *
 * This program is distributed in the hope that it will be useful,
 * but WITHOUT ANY WARRANTY; without even the implied warranty of
 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
 * GNU General Public License for more details.
 *
 * You should have received a copy of the GNU General Public License
 * along with this program; if not, write to the Free Software
 * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
 *
 */

#include "hdb/hdb.h"

namespace HDB {

void aiPlayerInit(AIEntity *e) {
	g_hdb->_ai->clearInventory();
	e->aiAction = aiPlayerAction;
	e->draw = g_hdb->_ai->getStandFrameDir(e);

	switch (e->dir) {
	case DIR_UP:
		e->state = STATE_STANDUP;
		break;
	case DIR_DOWN:
		e->state = STATE_STANDDOWN;
		break;
	case DIR_LEFT:
		e->state = STATE_STANDLEFT;
		break;
	case DIR_RIGHT:
		e->state = STATE_STANDRIGHT;
		break;
	case DIR_NONE:
		warning("AI-PLAYER: aiPlayerInit: DIR_NONE found");
		break;
	}

	e->moveSpeed = kPlayerMoveSpeed;
	strcpy(e->entityName, "player");
	g_hdb->_ai->assignPlayer(e);
}

void aiPlayerInit2(AIEntity *e) {
	if (!g_hdb->_ai->_clubUpGfx[0]) {
		warning("STUB: weapon_sel_gfx uninitialized");
		g_hdb->_ai->_clubUpGfx[0] = new Picture;
		g_hdb->_ai->_clubUpGfx[0]->load(g_hdb->_fileMan->findFirstData("clubup1", TYPE_PIC));
		g_hdb->_ai->_clubUpGfx[1] = new Picture;
		g_hdb->_ai->_clubUpGfx[1]->load(g_hdb->_fileMan->findFirstData("clubup2", TYPE_PIC));
		g_hdb->_ai->_clubUpGfx[2] = new Picture;
		g_hdb->_ai->_clubUpGfx[2]->load(g_hdb->_fileMan->findFirstData("clubup3", TYPE_PIC));
		g_hdb->_ai->_clubUpGfx[3] = new Picture;
		g_hdb->_ai->_clubUpGfx[3]->load(g_hdb->_fileMan->findFirstData("clubup3", TYPE_PIC));

		g_hdb->_ai->_clubDownGfx[0] = new Picture;
		g_hdb->_ai->_clubDownGfx[0]->load(g_hdb->_fileMan->findFirstData("clubdown1", TYPE_PIC));
		g_hdb->_ai->_clubDownGfx[1] = new Picture;
		g_hdb->_ai->_clubDownGfx[1]->load(g_hdb->_fileMan->findFirstData("clubdown2", TYPE_PIC));
		g_hdb->_ai->_clubDownGfx[2] = new Picture;
		g_hdb->_ai->_clubDownGfx[2]->load(g_hdb->_fileMan->findFirstData("clubdown3", TYPE_PIC));
		g_hdb->_ai->_clubDownGfx[3] = new Picture;
		g_hdb->_ai->_clubDownGfx[3]->load(g_hdb->_fileMan->findFirstData("clubdown3", TYPE_PIC));

		g_hdb->_ai->_clubLeftGfx[0] = new Picture;
		g_hdb->_ai->_clubLeftGfx[0]->load(g_hdb->_fileMan->findFirstData("clubleft1", TYPE_PIC));
		g_hdb->_ai->_clubLeftGfx[1] = new Picture;
		g_hdb->_ai->_clubLeftGfx[1]->load(g_hdb->_fileMan->findFirstData("clubleft2", TYPE_PIC));
		g_hdb->_ai->_clubLeftGfx[2] = new Picture;
		g_hdb->_ai->_clubLeftGfx[2]->load(g_hdb->_fileMan->findFirstData("clubleft3", TYPE_PIC));
		g_hdb->_ai->_clubLeftGfx[3] = new Picture;
		g_hdb->_ai->_clubLeftGfx[3]->load(g_hdb->_fileMan->findFirstData("clubleft3", TYPE_PIC));

		g_hdb->_ai->_clubRightGfx[0] = new Picture;
		g_hdb->_ai->_clubRightGfx[0]->load(g_hdb->_fileMan->findFirstData("clubright1", TYPE_PIC));
		g_hdb->_ai->_clubRightGfx[1] = new Picture;
		g_hdb->_ai->_clubRightGfx[1]->load(g_hdb->_fileMan->findFirstData("clubright2", TYPE_PIC));
		g_hdb->_ai->_clubRightGfx[2] = new Picture;
		g_hdb->_ai->_clubRightGfx[2]->load(g_hdb->_fileMan->findFirstData("clubright3", TYPE_PIC));
		g_hdb->_ai->_clubRightGfx[3] = new Picture;
		g_hdb->_ai->_clubRightGfx[3]->load(g_hdb->_fileMan->findFirstData("clubright3", TYPE_PIC));

		g_hdb->_ai->_clubUpFrames = 4;
		g_hdb->_ai->_clubDownFrames = 4;
		g_hdb->_ai->_clubLeftFrames = 4;
		g_hdb->_ai->_clubRightFrames = 4;

		g_hdb->_ai->_slugAttackGfx[0] = new Picture;
		g_hdb->_ai->_slugAttackGfx[0]->load(g_hdb->_fileMan->findFirstData("slug_shot1", TYPE_PIC));
		g_hdb->_ai->_slugAttackGfx[1] = new Picture;
		g_hdb->_ai->_slugAttackGfx[1]->load(g_hdb->_fileMan->findFirstData("slug_shot2", TYPE_PIC));
		g_hdb->_ai->_slugAttackGfx[2] = new Picture;
		g_hdb->_ai->_slugAttackGfx[2]->load(g_hdb->_fileMan->findFirstData("slug_shot3", TYPE_PIC));
		g_hdb->_ai->_slugAttackGfx[3] = new Picture;
		g_hdb->_ai->_slugAttackGfx[3]->load(g_hdb->_fileMan->findFirstData("slug_shot4", TYPE_PIC));

		int32 size = g_hdb->_fileMan->getLength("shock_spark_sit01", TYPE_TILE32);
		g_hdb->_ai->_stunLightningGfx[0] = g_hdb->_drawMan->getTileGfx("shock_spark_sit01", size);
		size = g_hdb->_fileMan->getLength("shock_spark_sit02", TYPE_TILE32);
		g_hdb->_ai->_stunLightningGfx[1] = g_hdb->_drawMan->getTileGfx("shock_spark_sit02", size);
		size = g_hdb->_fileMan->getLength("shock_spark_sit03", TYPE_TILE32);
		g_hdb->_ai->_stunLightningGfx[2] = g_hdb->_drawMan->getTileGfx("shock_spark_sit03", size);
		size = g_hdb->_fileMan->getLength("shock_spark_sit04", TYPE_TILE32);
		g_hdb->_ai->_stunLightningGfx[3] = g_hdb->_drawMan->getTileGfx("shock_spark_sit04", size);

		size = g_hdb->_fileMan->getLength("starstun_sit01", TYPE_TILE32);
		g_hdb->_ai->_stunnedGfx[0] = g_hdb->_drawMan->getTileGfx("starstun_sit01", size);
		size = g_hdb->_fileMan->getLength("starstun_sit02", TYPE_TILE32);
		g_hdb->_ai->_stunnedGfx[1] = g_hdb->_drawMan->getTileGfx("starstun_sit02", size);
		size = g_hdb->_fileMan->getLength("starstun_sit03", TYPE_TILE32);
		g_hdb->_ai->_stunnedGfx[2] = g_hdb->_drawMan->getTileGfx("starstun_sit03", size);
		size = g_hdb->_fileMan->getLength("starstun_sit04", TYPE_TILE32);
		g_hdb->_ai->_stunnedGfx[3] = g_hdb->_drawMan->getTileGfx("starstun_sit04", size);
	}

	e->draw = g_hdb->_ai->getStandFrameDir(e);
}

void aiPlayerAction(AIEntity *e) {
	debug(9, "STUB: AI: aiPlayerAction required");
}

void aiPlayerDraw(AIEntity *e, int mx, int my) {
	switch (e->state) {
	case STATE_ATK_CLUB_UP:
		g_hdb->_ai->_clubUpGfx[e->animFrame]->drawMasked(e->x + e->drawXOff - mx, e->y + e->drawYOff - my);
		break;
	case STATE_ATK_CLUB_DOWN:
		g_hdb->_ai->_clubDownGfx[e->animFrame]->drawMasked(e->x + e->drawXOff - mx, e->y + e->drawYOff - my);
		break;
	case STATE_ATK_CLUB_LEFT:
		g_hdb->_ai->_clubLeftGfx[e->animFrame]->drawMasked(e->x + e->drawXOff - mx, e->y + e->drawYOff - my);
		break;
	case STATE_ATK_CLUB_RIGHT:
		g_hdb->_ai->_clubRightGfx[e->animFrame]->drawMasked(e->x + e->drawXOff - mx, e->y + e->drawYOff - my);
		break;
	default:
		warning("AI-PLAYER: aiPlayerDraw: Unintended State");
		break;
	}

	if (e->sequence) {
		static int frame = 0;
		switch (e->dir) {
		case DIR_UP:
			g_hdb->_ai->_stunLightningGfx[frame]->drawMasked(e->x - mx, e->y - 32 - my);
			g_hdb->_ai->_stunLightningGfx[frame]->drawMasked(e->x - mx, e->y - 64 - my);
			break;
		case DIR_DOWN:
			g_hdb->_ai->_stunLightningGfx[frame]->drawMasked(e->x - mx, e->y + 32 - my);
			g_hdb->_ai->_stunLightningGfx[frame]->drawMasked(e->x - mx, e->y + 64 - my);
			break;
		case DIR_LEFT:
			g_hdb->_ai->_stunLightningGfx[frame]->drawMasked(e->x - 32 - mx, e->y - my);
			g_hdb->_ai->_stunLightningGfx[frame]->drawMasked(e->x - 64 - mx, e->y - my);
			break;
		case DIR_RIGHT:
			g_hdb->_ai->_stunLightningGfx[frame]->drawMasked(e->x + 32 - mx, e->y - my);
			g_hdb->_ai->_stunLightningGfx[frame]->drawMasked(e->x + 64 - mx, e->y - my);
			break;
		case DIR_NONE:
			warning("AI-PLAYER: aiPlayerDraw: DIR_NONE found");
			break;
		}

		frame = (frame + 1) & 3;
	}
}

void aiGemAttackInit(AIEntity *e) {
	warning("STUB: AI: aiGemAttackInit required");
}

void aiGemAttackInit2(AIEntity *e) {
	warning("STUB: AI: aiGemAttackInit2 required");
}

void aiGemAttackAction(AIEntity *e) {
	warning("STUB: AI: aiGemAttackAction required");
}

void aiChickenAction(AIEntity *e) {
	warning("STUB: AI: aiChickenAction required");
}

void aiChickenUse(AIEntity *e) {
	warning("STUB: AI: aiChickenUse required");
}

void aiChickenInit(AIEntity *e) {
	warning("STUB: AI: aiChickenInit required");
}

void aiChickenInit2(AIEntity *e) {
	warning("STUB: AI: aiChickenInit2 required");
}

void aiDollyInit(AIEntity *e) {
	warning("STUB: AI: aiDollyInit required");
}

void aiDollyInit2(AIEntity *e) {
	warning("STUB: AI: aiDollyInit2 required");
}

void aiSergeantInit(AIEntity *e) {
	e->moveSpeed = kPlayerMoveSpeed >> 1;
	if (e->value1)
		e->aiAction = aiSergeantAction;
}

void aiSergeantInit2(AIEntity *e) {
	e->draw = g_hdb->_ai->getStandFrameDir(e);
}

void aiSergeantAction(AIEntity *e) {
	if (e->goalX) {
		debug(9, "STUB: AI-PLAYER: aiSergeantAction: Play SND_FOOTSTEPS sounds");
		g_hdb->_ai->animateEntity(e);
	} else
		g_hdb->_ai->animEntFrames(e);
}

void aiSpacedudeInit(AIEntity *e) {
	warning("STUB: AI: aiSpacedudeInit required");
}

void aiSpacedudeInit2(AIEntity *e) {
	warning("STUB: AI: aiSpacedudeInit2 required");
}

void aiCrateAction(AIEntity *e) {
	warning("STUB: AI: aiCrateAction required");
}

void aiCrateInit2(AIEntity *e) {
	warning("STUB: AI: aiCrateInit2 required");
}

void aiCrateInit(AIEntity *e) {
	warning("STUB: AI: aiCrateInit required");
}

void aiBarrelLightAction(AIEntity *e) {
	warning("STUB: AI: aiBarrelLightAction required");
}

void aiBarrelLightInit2(AIEntity *e) {
	warning("STUB: AI: aiBarrelLightInit2 required");
}

void aiBarrelLightInit(AIEntity *e) {
	warning("STUB: AI: aiBarrelLightInit required");
}

void aiBarrelHeavyAction(AIEntity *e) {
	warning("STUB: AI: aiBarrelHeavyAction required");
}

void aiBarrelHeavyInit2(AIEntity *e) {
	warning("STUB: AI: aiBarrelHeavyInit2 required");
}

void aiBarrelHeavyInit(AIEntity *e) {
	warning("STUB: AI: aiBarrelHeavyInit required");
}

void aiBarrelExplosionEnd(AIEntity *e) {
	warning("STUB: AI: aiBarrelExplosionEnd required");
}

void aiBarrelExplosionAction(AIEntity *e) {
	warning("STUB: AI: aiBarrelExplosionAction required");
}

void aiBarrelExplode(AIEntity *e) {
	warning("STUB: AI: aiBarrelExplode required");
}

void aiBarrelExplodeInit(AIEntity *e) {
	warning("STUB: AI: aiBarrelExplodeInit required");
}

void aiBarrelExplodeInit2(AIEntity *e) {
	warning("STUB: AI: aiBarrelExplodeInit2 required");
}

void aiBarrelExplodeAction(AIEntity *e) {
	warning("STUB: AI: aiBarrelExplodeAction required");
}

void aiBarrelExplodeSpread(AIEntity *e) {
	warning("STUB: AI: aiBarrelExplodeSpread required");
}

void aiBarrelBlowup(AIEntity *e, int x, int y) {
	warning("STUB: AI: aiBarrelBlowup required");
}

void aiMaintBotInit(AIEntity *e) {
	warning("STUB: AI: aiMaintBotInit required");
}

void aiMaintBotInit2(AIEntity *e) {
	warning("STUB: AI: aiMaintBotInit2 required");
}

void aiMaintBotInitAction(AIEntity *e) {
	warning("STUB: AI: aiMaintBotInitAction required");
}

void aiScientistInit(AIEntity *e) {
	warning("STUB: AI: aiScientistInit required");
}

void aiScientistInit2(AIEntity *e) {
	warning("STUB: AI: aiScientistInit2 required");
}

void aiFourFirerInit(AIEntity *e) {
	warning("STUB: AI: aiFourFirerInit required");
}

void aiFourFirerInit2(AIEntity *e) {
	warning("STUB: AI: aiFourFirerInit2 required");
}

void aiFourFirerAction(AIEntity *e) {
	warning("STUB: AI: aiFourFirerAction required");
}

void aiSlugAttackAction(AIEntity *e) {
	warning("STUB: AI: aiSlugAttackAction required");
}

void aiSlugAttackDraw(AIEntity *e, int mx, int my) {
	warning("STUB: AI: aiSlugAttackDraw required");
}

void aiSlugAttackInit(AIEntity *e) {
	warning("STUB: AI: aiSlugAttackInit required");
}

void aiSlugAttackInit2(AIEntity *e) {
	warning("STUB: AI: aiSlugAttackInit2 required");
}

void aiDeadWorkerInit(AIEntity *e) {
	warning("STUB: AI: aiDeadWorkerInit required");
}

void aiDeadWorkerInit2(AIEntity *e) {
	warning("STUB: AI: aiDeadWorkerInit2 required");
}

void aiWorkerInit(AIEntity *e) {
	warning("STUB: AI: aiWorkerInit required");
}

void aiWorkerInit2(AIEntity *e) {
	warning("STUB: AI: aiWorkerInit2 required");
}

void aiAccountantInit(AIEntity *e) {
	warning("STUB: AI: aiAccountantInit required");
}

void aiAccountantInit2(AIEntity *e) {
	warning("STUB: AI: aiAccountantInit2 required");
}

void aiFrogStatueInit(AIEntity *e) {
	warning("STUB: AI: aiFrogStatueInit required");
}

void aiFrogStatueInit2(AIEntity *e) {
	warning("STUB: AI: aiFrogStatueInit2 required");
}

void aiFrogStatueAction(AIEntity *e) {
	warning("STUB: AI: aiFrogStatueAction required");
}

void aiRoboStunnerAction(AIEntity *e) {
	warning("STUB: AI: aiRoboStunnerAction required");
}

void aiRoboStunnerInit(AIEntity *e) {
	warning("STUB: AI: aiRoboStunnerInit required");
}

void aiRoboStunnerInit2(AIEntity *e) {
	warning("STUB: AI: aiRoboStunnerInit2 required");
}

void aiClubInit(AIEntity *e) {
	warning("STUB: AI: aiClubInit required");
}

void aiClubInit2(AIEntity *e) {
	warning("STUB: AI: aiClubInit2 required");
}

void aiSlugSlingerInit(AIEntity *e) {
	warning("STUB: AI: aiSlugSlingerInit required");
}

void aiSlugSlingerInit2(AIEntity *e) {
	warning("STUB: AI: aiSlugSlingerInit2 required");
}

void aiLaserAction(AIEntity *e) {
	warning("STUB: AI: aiLaserAction required");
}

void aiLaserDraw(AIEntity *e, int mx, int my) {
	warning("STUB: AI: aiLaserDraw required");
}

void aiDiverterAction(AIEntity *e) {
	warning("STUB: AI: aiDiverterAction required");
}

void aiDiverterDraw(AIEntity *e, int mx, int my) {
	warning("STUB: AI: aiDiverterDraw required");
}

void aiDeadEyeAction(AIEntity *e) {
	warning("STUB: AI: aiDeadEyeAction required");
}

void aiMeerkatDraw(AIEntity *e, int mx, int my) {
	warning("STUB: AI: aiMeerkatDraw required");
}

void aiMeerkatAction(AIEntity *e) {
	warning("STUB: AI: aiMeerkatAction required");
}

void aiMeerkatLookAround(AIEntity *e) {
	warning("STUB: AI: aiMeerkatLookAround required");
}

void aiDeadEyeWalkInPlace(AIEntity *e) {
	warning("STUB: AI: aiDeadEyeWalkInPlace required");
}

void aiFatFrogAction(AIEntity *e) {
	warning("STUB: AI: aiFatFrogAction required");
}

void aiFatFrogTongueDraw(AIEntity *e, int mx, int my) {
	warning("STUB: AI: aiFatFrogTongueDraw required");
}

void aiGoodFairyAction(AIEntity *e) {
	warning("STUB: AI: aiGoodFairyAction required");
}

void aiBadFairyAction(AIEntity *e) {
	warning("STUB: AI: aiBadFairyAction required");
}

void aiGatePuddleAction(AIEntity *e) {
	warning("STUB: AI: aiGatePuddleAction required");
}

void aiIcePuffSnowballAction(AIEntity *e) {
	warning("STUB: AI: aiIcePuffSnowballAction required");
}

void aiIcePuffSnowballDraw(AIEntity *e, int mx, int my) {
	warning("STUB: AI: aiIcePuffSnowballDraw required");
}

void aiIcePuffAction(AIEntity *e) {
	warning("STUB: AI: aiIcePuffAction required");
}

void aiBuzzflyAction(AIEntity *e) {
	warning("STUB: AI: aiBuzzflyAction required");
}

void aiDragonAction(AIEntity *e) {
	warning("STUB: AI: aiDragonAction required");
}

void aiDragonDraw(AIEntity *e, int mx, int my) {
	warning("STUB: AI: aiDragonDraw required");
}

void aiListenBotInit(AIEntity *e) {
	warning("STUB: AI: aiListenBotInit required");
}

void aiListenBotInit2(AIEntity *e) {
	warning("STUB: AI: aiListenBotInit2 required");
}

void aiLaserInit(AIEntity *e) {
	warning("STUB: AI: aiLaserInit required");
}

void aiLaserInit2(AIEntity *e) {
	warning("STUB: AI: aiLaserInit2 required");
}

void aiDiverterInit(AIEntity *e) {
	warning("STUB: AI: aiDiverterInit required");
}

void aiDiverterInit2(AIEntity *e) {
	warning("STUB: AI: aiDiverterInit2 required");
}

void aiDeadEyeInit(AIEntity *e) {
	warning("STUB: AI: aiDeadEyeInit required");
}

void aiDeadEyeInit2(AIEntity *e) {
	warning("STUB: AI: aiDeadEyeInit2 required");
}

void aiMeerkatInit(AIEntity *e) {
	warning("STUB: AI: aiMeerkatInit required");
}

void aiMeerkatInit2(AIEntity *e) {
	warning("STUB: AI: aiMeerkatInit2 required");
}

void aiFatFrogInit(AIEntity *e) {
	warning("STUB: AI: aiFatFrogInit required");
}

void aiFatFrogInit2(AIEntity *e) {
	warning("STUB: AI: aiFatFrogInit2 required");
}

void aiGoodFairyInit(AIEntity *e) {
	warning("STUB: AI: aiGoodFairyInit required");
}

void aiGoodFairyInit2(AIEntity *e) {
	warning("STUB: AI: aiGoodFairyInit2 required");
}

void aiGoodFairyMoveaway(AIEntity *e) {
	warning("STUB: AI: aiGoodFairyMoveaway required");
}

void aiBadFairyInit(AIEntity *e) {
	warning("STUB: AI: aiBadFairyInit required");
}

void aiBadFairyInit2(AIEntity *e) {
	warning("STUB: AI: aiBadFairyInit2 required");
}

void aiGatePuddleInit(AIEntity *e) {
	warning("STUB: AI: aiGatePuddleInit required");
}

void aiGatePuddleInit2(AIEntity *e) {
	warning("STUB: AI: aiGatePuddleInit2 required");
}

void aiIcePuffInit(AIEntity *e) {
	warning("STUB: AI: aiIcePuffInit required");
}

void aiIcePuffInit2(AIEntity *e) {
	warning("STUB: AI: aiIcePuffInit2 required");
}

void aiBuzzflyInit(AIEntity *e) {
	warning("STUB: AI: aiBuzzflyInit required");
}

void aiBuzzflyInit2(AIEntity *e) {
	warning("STUB: AI: aiBuzzflyInit2 required");
}

void aiDragonInit(AIEntity *e) {
	warning("STUB: AI: aiDragonInit required");
}

void aiDragonInit2(AIEntity *e) {
	warning("STUB: AI: aiDragonInit2 required");
}

void aiDragonWake(AIEntity *e) {
	warning("STUB: AI: aiDragonWake required");
}

void aiDragonUse(AIEntity *e) {
	warning("STUB: AI: aiDragonUse required");
}

void aiEnvelopeGreenInit(AIEntity *e) {
	warning("STUB: AI: aiEnvelopeGreenInit required");
}

void aiEnvelopeGreenInit2(AIEntity *e) {
	warning("STUB: AI: aiEnvelopeGreenInit2 required");
}

void aiGemBlueInit(AIEntity *e) {
	warning("STUB: AI: aiGemBlueInit required");
}

void aiGemBlueInit2(AIEntity *e) {
	warning("STUB: AI: aiGemBlueInit2 required");
}

void aiGemRedInit(AIEntity *e) {
	warning("STUB: AI: aiGemRedInit required");
}

void aiGemRedInit2(AIEntity *e) {
	warning("STUB: AI: aiGemRedInit2 required");
}

void aiGemGreenInit(AIEntity *e) {
	warning("STUB: AI: aiGemGreenInit required");
}

void aiGemGreenInit2(AIEntity *e) {
	warning("STUB: AI: aiGemGreenInit2 required");
}

void aiTeaCupInit(AIEntity *e) {
	warning("STUB: AI: aiTeaCupInit required");
}

void aiTeaCupInit2(AIEntity *e) {
	warning("STUB: AI: aiTeaCupInit2 required");
}

void aiCookieInit(AIEntity *e) {
	warning("STUB: AI: aiCookieInit required");
}

void aiCookieInit2(AIEntity *e) {
	warning("STUB: AI: aiCookieInit2 required");
}

void aiBurgerInit(AIEntity *e) {
	warning("STUB: AI: aiBurgerInit required");
}

void aiBurgerInit2(AIEntity *e) {
	warning("STUB: AI: aiBurgerInit2 required");
}

void aiBookInit(AIEntity *e) {
	warning("STUB: AI: aiBookInit required");
}

void aiBookInit2(AIEntity *e) {
	warning("STUB: AI: aiBookInit2 required");
}

void aiClipboardInit(AIEntity *e) {
	warning("STUB: AI: aiClipboardInit required");
}

void aiClipboardInit2(AIEntity *e) {
	warning("STUB: AI: aiClipboardInit2 required");
}

void aiNoteInit(AIEntity *e) {
	warning("STUB: AI: aiNoteInit required");
}

void aiNoteInit2(AIEntity *e) {
	warning("STUB: AI: aiNoteInit2 required");
}

void aiKeycardWhiteInit(AIEntity *e) {
	warning("STUB: AI: aiKeycardWhiteInit required");
}

void aiKeycardWhiteInit2(AIEntity *e) {
	warning("STUB: AI: aiKeycardWhiteInit2 required");
}

void aiKeycardBlueInit(AIEntity *e) {
	warning("STUB: AI: aiKeycardBlueInit required");
}

void aiKeycardBlueInit2(AIEntity *e) {
	warning("STUB: AI: aiKeycardBlueInit2 required");
}

void aiKeycardRedInit(AIEntity *e) {
	warning("STUB: AI: aiKeycardRedInit required");
}

void aiKeycardRedInit2(AIEntity *e) {
	warning("STUB: AI: aiKeycardRedInit2 required");
}

void aiKeycardGreenInit(AIEntity *e) {
	warning("STUB: AI: aiKeycardGreenInit required");
}

void aiKeycardGreenInit2(AIEntity *e) {
	warning("STUB: AI: aiKeycardGreenInit2 required");
}

void aiKeycardPurpleInit(AIEntity *e) {
	warning("STUB: AI: aiKeycardPurpleInit required");
}

void aiKeycardPurpleInit2(AIEntity *e) {
	warning("STUB: AI: aiKeycardPurpleInit2 required");
}

void aiKeycardBlackInit(AIEntity *e) {
	warning("STUB: AI: aiKeycardBlackInit required");
}

void aiKeycardBlackInit2(AIEntity *e) {
	warning("STUB: AI: aiKeycardBlackInit2 required");
}

void aiSeedInit(AIEntity *e) {
	warning("STUB: AI: aiSeedInit required");
}

void aiSeedInit2(AIEntity *e) {
	warning("STUB: AI: aiSeedInit2 required");
}

void aiSodaInit(AIEntity *e) {
	warning("STUB: AI: aiSodaInit required");
}

void aiSodaInit2(AIEntity *e) {
	warning("STUB: AI: aiSodaInit2 required");
}

void aiDollyTool1Init(AIEntity *e) {
	warning("STUB: AI: aiDollyTool1Init required");
}

void aiDollyTool1Init2(AIEntity *e) {
	warning("STUB: AI: aiDollyTool1Init2 required");
}

void aiDollyTool2Init(AIEntity *e) {
	warning("STUB: AI: aiDollyTool2Init required");
}

void aiDollyTool2Init2(AIEntity *e) {
	warning("STUB: AI: aiDollyTool2Init2 required");
}

void aiDollyTool3Init(AIEntity *e) {
	warning("STUB: AI: aiDollyTool3Init required");
}

void aiDollyTool3Init2(AIEntity *e) {
	warning("STUB: AI: aiDollyTool3Init2 required");
}

void aiDollyTool4Init(AIEntity *e) {
	warning("STUB: AI: aiDollyTool4Init required");
}

void aiDollyTool4Init2(AIEntity *e) {
	warning("STUB: AI: aiDollyTool4Init2 required");
}

void aiRouterInit(AIEntity *e) {
	warning("STUB: AI: aiRouterInit required");
}

void aiRouterInit2(AIEntity *e) {
	warning("STUB: AI: aiRouterInit2 required");
}

void aiSlicerInit(AIEntity *e) {
	warning("STUB: AI: aiSlicerInit required");
}

void aiSlicerInit2(AIEntity *e) {
	warning("STUB: AI: aiSlicerInit2 required");
}

void aiPackageInit(AIEntity *e) {
	warning("STUB: AI: aiPackageInit required");
}

void aiPackageInit2(AIEntity *e) {
	warning("STUB: AI: aiPackageInit2 required");
}

void aiMagicEggAction(AIEntity *e) {
	warning("STUB: AI: aiMagicEggAction required");
}

void aiMagicEggInit(AIEntity *e) {
	warning("STUB: AI: aiMagicEggInit required");
}

void aiMagicEggInit2(AIEntity *e) {
	warning("STUB: AI: aiMagicEggInit2 required");
}

void aiMagicEggUse(AIEntity *e) {
	warning("STUB: AI: aiMagicEggUse required");
}

void aiIceBlockAction(AIEntity *e) {
	warning("STUB: AI: aiIceBlockAction required");
}

void aiIceBlockInit(AIEntity *e) {
	warning("STUB: AI: aiIceBlockInit required");
}

void aiIceBlockInit2(AIEntity *e) {
	warning("STUB: AI: aiIceBlockInit2 required");
}

void aiCabKeyInit(AIEntity *e) {
	warning("STUB: AI: aiCabKeyInit required");
}

void aiCabKeyInit2(AIEntity *e) {
	warning("STUB: AI: aiCabKeyInit2 required");
}

void aiItemChickenInit(AIEntity *e) {
	warning("STUB: AI: aiItemChickenInit required");
}

void aiItemChickenInit2(AIEntity *e) {
	warning("STUB: AI: aiItemChickenInit2 required");
}

void aiPdaInit(AIEntity *e) {
	warning("STUB: AI: aiPdaInit required");
}

void aiPdaInit2(AIEntity *e) {
	warning("STUB: AI: aiPdaInit2 required");
}

void aiCellUse(AIEntity *e) {
	warning("STUB: AI: aiCellUse required");
}

void aiCellInit2(AIEntity *e) {
	warning("STUB: AI: aiCellInit2 required");
}

void aiCellInit(AIEntity *e) {
	warning("STUB: AI: aiCellInit required");
}

void aiEnvelopeWhiteInit(AIEntity *e) {
	warning("STUB: AI: aiEnvelopeWhiteInit required");
}

void aiEnvelopeWhiteInit2(AIEntity *e) {
	warning("STUB: AI: aiEnvelopeWhiteInit2 required");
}

void aiEnvelopeBlueInit(AIEntity *e) {
	warning("STUB: AI: aiEnvelopeBlueInit required");
}

void aiEnvelopeBlueInit2(AIEntity *e) {
	warning("STUB: AI: aiEnvelopeBlueInit2 required");
}

void aiEnvelopeRedInit(AIEntity *e) {
	warning("STUB: AI: aiEnvelopeRedInit required");
}

void aiEnvelopeRedInit2(AIEntity *e) {
	warning("STUB: AI: aiEnvelopeRedInit2 required");
}

void aiTransceiverInit(AIEntity *e) {
	warning("STUB: AI: aiTransceiverInit required");
}

void aiTransceiverInit2(AIEntity *e) {
	warning("STUB: AI: aiTransceiverInit2 required");
}

void aiTransceiverAction(AIEntity *e) {
	warning("STUB: AI: aiTransceiverAction required");
}

void aiTransceiverUse(AIEntity *e) {
	warning("STUB: AI: aiTransceiverUse required");
}

void aiMonkeystoneInit(AIEntity *e) {
	warning("STUB: AI: aiMonkeystoneInit required");
}

void aiMonkeystoneAction(AIEntity *e) {
	warning("STUB: AI: aiMonkeystoneAction required");
}

void aiMonkeystoneInit2(AIEntity *e) {
	warning("STUB: AI: aiMonkeystoneInit2 required");
}

void aiMonkeystoneUse(AIEntity *e) {
	warning("STUB: AI: aiMonkeystoneUse required");
}

void aiMonkeystoneUse2(AIEntity *e) {
	warning("STUB: AI: aiMonkeystoneUse2 required");
}

void aiGemAction(AIEntity *e) {
	warning("STUB: AI: aiGemAction required");
}

void aiGemAction2(AIEntity *e) {
	warning("STUB: AI: aiGemAction2 required");
}

void aiGemWhiteInit(AIEntity *e) {
	warning("STUB: AI: aiGemWhiteInit required");
}

void aiGemWhiteInit2(AIEntity *e) {
	warning("STUB: AI: aiGemWhiteInit2 required");
}

void aiGooCupUse(AIEntity *e) {
	warning("STUB: AI: aiGooCupUse required");
}

void aiGooCupInit(AIEntity *e) {
	warning("STUB: AI: aiGooCupInit required");
}

void aiGooCupInit2(AIEntity *e) {
	warning("STUB: AI: aiGooCupInit2 required");
}

void aiVortexianAction(AIEntity *e) {
	warning("STUB: AI: aiVortexianAction required");
}

void aiVortexianUse(AIEntity *e) {
	warning("STUB: AI: aiVortexianUse required");
}

void aiVortexianInit(AIEntity *e) {
	warning("STUB: AI: aiVortexianInit required");
}

void aiVortexianInit2(AIEntity *e) {
	warning("STUB: AI: aiVortexianInit2 required");
}

void aiNoneInit(AIEntity *e) {
	warning("STUB: AI: aiNoneInit required");
}

void aiNoneInit2(AIEntity *e) {
	warning("STUB: AI: aiNoneInit2 required");
}

void callbackDoorOpenClose(int x, int y) {
	warning("STUB: AI: callbackDoorOpenClose required");
}

void callbackAutoDoorOpenClose(int x, int y) {
	warning("STUB: AI: callbackAutoDoorOpenClose required");
}

// Utility Functions
void aiAnimateStanddown(AIEntity *e, int speed) {
	warning("STUB: AI: aiAnimateStanddown required");
}

void aiGenericAction(AIEntity *e) {
	warning("STUB: AI: aiGenericAction required");
}

void aiGetItemAction(AIEntity *e) {
	warning("STUB: AI: aiGetItemAction required");
}

} // End of Namespace