2019-06-19 10:23:22 +00:00
|
|
|
/* 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 {
|
|
|
|
|
|
|
|
/*
|
|
|
|
Comment from Original:
|
|
|
|
these arrays list each of the game's actor's possible states and
|
|
|
|
which graphics to load for them.
|
|
|
|
*/
|
|
|
|
|
|
|
|
AIStateDef none[] = {
|
2019-06-19 11:35:14 +00:00
|
|
|
{ STATE_ENDSTATES, "" }
|
2019-06-19 10:23:22 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
AIStateDef guy[] = {
|
|
|
|
{ STATE_BLINK, "ent_guy_blink" },
|
|
|
|
{ STATE_STANDDOWN, "ent_guy_standdown" },
|
|
|
|
{ STATE_STANDUP, "ent_guy_standup" },
|
|
|
|
{ STATE_STANDLEFT, "ent_guy_standleft" },
|
|
|
|
{ STATE_STANDRIGHT, "ent_guy_standright" },
|
|
|
|
{ STATE_MOVEDOWN, "ent_guy_walkdown" },
|
|
|
|
{ STATE_MOVEUP, "ent_guy_walkup" },
|
|
|
|
{ STATE_MOVELEFT, "ent_guy_walkleft" },
|
|
|
|
{ STATE_MOVERIGHT, "ent_guy_walkright" },
|
|
|
|
{ STATE_PUSHDOWN, "ent_guy_pushdown" },
|
|
|
|
{ STATE_PUSHUP, "ent_guy_pushup" },
|
|
|
|
{ STATE_PUSHLEFT, "ent_guy_pushleft" },
|
|
|
|
{ STATE_PUSHRIGHT, "ent_guy_pushright" },
|
|
|
|
{ STATE_GRABDOWN, "ent_guy_getdown" },
|
|
|
|
{ STATE_GRABUP, "ent_guy_getup" },
|
|
|
|
{ STATE_GRABLEFT, "ent_guy_getleft" },
|
|
|
|
{ STATE_GRABRIGHT, "ent_guy_getright" },
|
|
|
|
{ STATE_PLUMMET, "ent_guy_plummet" },
|
|
|
|
{ STATE_ATK_STUN_DOWN, "ent_guy_stundown" },
|
|
|
|
{ STATE_ATK_STUN_UP, "ent_guy_stunup" },
|
|
|
|
{ STATE_ATK_STUN_LEFT, "ent_guy_stunleft" },
|
|
|
|
{ STATE_ATK_STUN_RIGHT, "ent_guy_stunright" },
|
|
|
|
{ STATE_ATK_SLUG_DOWN, "ent_guy_slingdown" },
|
|
|
|
{ STATE_ATK_SLUG_UP, "ent_guy_slingup" },
|
|
|
|
{ STATE_ATK_SLUG_LEFT, "ent_guy_slingleft" },
|
|
|
|
{ STATE_ATK_SLUG_RIGHT, "ent_guy_slingright" },
|
|
|
|
{ STATE_DYING, "ent_guy_die" },
|
|
|
|
{ STATE_HORRIBLE1, "ent_guy_horrible1" },
|
|
|
|
{ STATE_HORRIBLE2, "ent_guy_horrible2" },
|
|
|
|
{ STATE_HORRIBLE3, "ent_guy_horrible3" },
|
|
|
|
{ STATE_HORRIBLE4, "ent_guy_horrible4" },
|
|
|
|
{ STATE_GOODJOB, "ent_guy_goodjob" },
|
2019-06-19 11:35:14 +00:00
|
|
|
{ STATE_ENDSTATES, "" }
|
2019-06-19 10:23:22 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
AIStateDef gemAttack[] = {
|
|
|
|
{ STATE_MOVEDOWN, "ent_gem_white_sit" },
|
2019-06-19 11:35:14 +00:00
|
|
|
{ STATE_ENDSTATES, "" }
|
2019-06-19 10:23:22 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
AIStateDef slugAttack[] = {
|
2019-06-19 11:35:14 +00:00
|
|
|
{ STATE_ENDSTATES, "" }
|
2019-06-19 10:23:22 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
AIStateDef dolly[] = {
|
|
|
|
{ STATE_MOVEDOWN, "ent_sergeant_walkdown" },
|
|
|
|
{ STATE_MOVEUP, "ent_sergeant_walkup" },
|
|
|
|
{ STATE_MOVELEFT, "ent_sergeant_walkleft" },
|
|
|
|
{ STATE_MOVERIGHT, "ent_sergeant_walkright" },
|
|
|
|
{ STATE_DOLLYUSERIGHT, "ent_sergeant_userright" },
|
|
|
|
{ STATE_KISSRIGHT, "ent_sergeant_kissright" },
|
|
|
|
{ STATE_KISSLEFT, "ent_sergeant_kissleft" },
|
|
|
|
{ STATE_ANGRY, "ent_sergeant_angry"},
|
|
|
|
{ STATE_LAUGH, "ent_sergeant_laugh" },
|
|
|
|
{ STATE_PANIC, "ent_sergeant_panic" },
|
2019-06-19 11:35:14 +00:00
|
|
|
{ STATE_ENDSTATES, "" }
|
2019-06-19 10:23:22 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
AIStateDef sergeant[] = {
|
|
|
|
{ STATE_STANDDOWN, "ent_sergeant_standdown" },
|
|
|
|
{ STATE_STANDUP, "ent_sergeant_standup" },
|
|
|
|
{ STATE_STANDLEFT, "ent_sergeant_standleft" },
|
|
|
|
{ STATE_STANDRIGHT, "ent_sergeant_standright" },
|
|
|
|
{ STATE_YELL, "ent_sergeant_yell" },
|
|
|
|
{ STATE_MOVEDOWN, "ent_sergeant_walkdown" },
|
|
|
|
{ STATE_MOVEUP, "ent_sergeant_walkup" },
|
|
|
|
{ STATE_MOVELEFT, "ent_sergeant_walkleft" },
|
|
|
|
{ STATE_MOVERIGHT, "ent_sergeant_walkright" },
|
2019-06-19 11:35:14 +00:00
|
|
|
{ STATE_ENDSTATES, "" }
|
2019-06-19 10:23:22 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
AIStateDef spacedude[] = {
|
|
|
|
{ STATE_MOVEDOWN, "ent_spacedude_walkdown" },
|
|
|
|
{ STATE_MOVEUP, "ent_spacedude_walkup" },
|
|
|
|
{ STATE_MOVELEFT, "ent_spacedude_walkleft" },
|
|
|
|
{ STATE_MOVERIGHT, "ent_spacedude_walkright" },
|
2019-06-19 11:35:14 +00:00
|
|
|
{ STATE_ENDSTATES, "" }
|
2019-06-19 10:23:22 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
AIStateDef chicken[] = {
|
|
|
|
{ STATE_STANDDOWN, "ent_chicken_standdown" },
|
|
|
|
{ STATE_STANDUP, "ent_chicken_standup" },
|
|
|
|
{ STATE_STANDLEFT, "ent_chicken_standleft" },
|
|
|
|
{ STATE_STANDRIGHT, "ent_chicken_standright" },
|
|
|
|
{ STATE_MOVEDOWN, "ent_chicken_walkdown" },
|
|
|
|
{ STATE_MOVEUP, "ent_chicken_walkup" },
|
|
|
|
{ STATE_MOVELEFT, "ent_chicken_walkleft" },
|
|
|
|
{ STATE_MOVERIGHT, "ent_chicken_walkright" },
|
2019-06-19 11:35:14 +00:00
|
|
|
{ STATE_ENDSTATES, "" }
|
2019-06-19 10:23:22 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
AIStateDef vortexian[] = {
|
|
|
|
{ STATE_STANDDOWN, "ent_vortexian_standdown" },
|
2019-06-19 11:35:14 +00:00
|
|
|
{ STATE_ENDSTATES, "" }
|
2019-06-19 10:23:22 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
AIStateDef maintBot[] = {
|
|
|
|
{ STATE_STANDDOWN, "ent_maintbot_standdown" },
|
|
|
|
{ STATE_STANDUP, "ent_maintbot_standup" },
|
|
|
|
{ STATE_STANDLEFT, "ent_maintbot_standleft" },
|
|
|
|
{ STATE_STANDRIGHT, "ent_maintbot_standright" },
|
|
|
|
{ STATE_MOVEDOWN, "ent_maintbot_walkdown" },
|
|
|
|
{ STATE_MOVEUP, "ent_maintbot_walkup" },
|
|
|
|
{ STATE_MOVELEFT, "ent_maintbot_walkleft" },
|
|
|
|
{ STATE_MOVERIGHT, "ent_maintbot_walkright" },
|
|
|
|
{ STATE_USEDOWN, "ent_maintbot_usedown" },
|
|
|
|
{ STATE_USEUP, "ent_maintbot_useup" },
|
|
|
|
{ STATE_USELEFT, "ent_maintbot_useleft" },
|
|
|
|
{ STATE_USERIGHT, "ent_maintbot_useright" },
|
2019-06-19 11:35:14 +00:00
|
|
|
{ STATE_ENDSTATES, "" }
|
2019-06-19 10:23:22 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
AIStateDef scientist[] = {
|
|
|
|
{ STATE_BLINK, "ent_scientist_blink" },
|
|
|
|
{ STATE_STANDDOWN, "ent_scientist_standdown" },
|
|
|
|
{ STATE_STANDUP, "ent_scientist_standup" },
|
|
|
|
{ STATE_STANDLEFT, "ent_scientist_standleft" },
|
|
|
|
{ STATE_STANDRIGHT, "ent_scientist_standright" },
|
|
|
|
{ STATE_MOVEDOWN, "ent_scientist_walkdown" },
|
|
|
|
{ STATE_MOVEUP, "ent_scientist_walkup" },
|
|
|
|
{ STATE_MOVELEFT, "ent_scientist_walkleft" },
|
|
|
|
{ STATE_MOVERIGHT, "ent_scientist_walkright" },
|
2019-06-19 11:35:14 +00:00
|
|
|
{ STATE_ENDSTATES, "" }
|
2019-06-19 10:23:22 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
AIStateDef worker[] = {
|
|
|
|
{ STATE_BLINK, "ent_worker_blink" },
|
|
|
|
{ STATE_STANDDOWN, "ent_worker_standdown" },
|
|
|
|
{ STATE_STANDUP, "ent_worker_standup" },
|
|
|
|
{ STATE_STANDLEFT, "ent_worker_standleft" },
|
|
|
|
{ STATE_STANDRIGHT, "ent_worker_standright" },
|
|
|
|
{ STATE_MOVEDOWN, "ent_worker_walkdown" },
|
|
|
|
{ STATE_MOVEUP, "ent_worker_walkup" },
|
|
|
|
{ STATE_MOVELEFT, "ent_worker_walkleft" },
|
|
|
|
{ STATE_MOVERIGHT, "ent_worker_walkright" },
|
2019-06-19 11:35:14 +00:00
|
|
|
{ STATE_ENDSTATES, "" }
|
2019-06-19 10:23:22 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
AIStateDef deadWorker[] = {
|
|
|
|
{ STATE_STANDDOWN, "ent_dead_worker_sit" },
|
2019-06-19 11:35:14 +00:00
|
|
|
{ STATE_ENDSTATES, "" }
|
2019-06-19 10:23:22 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
AIStateDef accountant[] = {
|
|
|
|
{ STATE_STANDDOWN, "ent_accountant_standdown" },
|
|
|
|
{ STATE_STANDUP, "ent_accountant_standup" },
|
|
|
|
{ STATE_STANDLEFT, "ent_accountant_standleft" },
|
|
|
|
{ STATE_STANDRIGHT, "ent_accountant_standright" },
|
2019-06-19 11:35:14 +00:00
|
|
|
{ STATE_ENDSTATES, "" }
|
2019-06-19 10:23:22 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
// Enemies
|
|
|
|
|
|
|
|
AIStateDef pushBot[] = {
|
|
|
|
{ STATE_MOVEDOWN, "ent_pushbot_walkdown" },
|
|
|
|
{ STATE_MOVEUP, "ent_pushbot_walkup" },
|
|
|
|
{ STATE_MOVELEFT, "ent_pushbot_walkleft" },
|
|
|
|
{ STATE_MOVERIGHT, "ent_pushbot_walkright" },
|
2019-06-19 11:35:14 +00:00
|
|
|
{ STATE_ENDSTATES, "" }
|
2019-06-19 10:23:22 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
AIStateDef rightBot[] = {
|
|
|
|
{ STATE_MOVEDOWN, "ent_rightbot_walkdown" },
|
|
|
|
{ STATE_MOVEUP, "ent_rightbot_walkup" },
|
|
|
|
{ STATE_MOVELEFT, "ent_rightbot_walkleft" },
|
|
|
|
{ STATE_MOVERIGHT, "ent_rightbot_walkright" },
|
2019-06-19 11:35:14 +00:00
|
|
|
{ STATE_ENDSTATES, "" }
|
2019-06-19 10:23:22 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
AIStateDef omniBot[] = {
|
|
|
|
{ STATE_MOVEDOWN, "ent_omnibot_walkdown" },
|
|
|
|
{ STATE_MOVEUP, "ent_omnibot_walkup" },
|
|
|
|
{ STATE_MOVELEFT, "ent_omnibot_walkleft" },
|
|
|
|
{ STATE_MOVERIGHT, "ent_omnibot_walkright" },
|
2019-06-19 11:35:14 +00:00
|
|
|
{ STATE_ENDSTATES, "" }
|
2019-06-19 10:23:22 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
AIStateDef laser[] = {
|
|
|
|
{ STATE_STANDDOWN, "ent_laser_down" },
|
|
|
|
{ STATE_STANDUP, "ent_laser_up" },
|
|
|
|
{ STATE_STANDLEFT, "ent_laser_left" },
|
|
|
|
{ STATE_STANDRIGHT, "ent_laser_right" },
|
2019-06-19 11:35:14 +00:00
|
|
|
{ STATE_ENDSTATES, "" }
|
2019-06-19 10:23:22 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
AIStateDef diverter[] = {
|
|
|
|
{ STATE_DIVERTER_BL, "ent_deflectorbl_sit" },
|
|
|
|
{ STATE_DIVERTER_BR, "ent_deflectorbr_sit" },
|
|
|
|
{ STATE_DIVERTER_TL, "ent_deflectortl_sit" },
|
|
|
|
{ STATE_DIVERTER_TR, "ent_deflectortr_sit" },
|
2019-06-19 11:35:14 +00:00
|
|
|
{ STATE_ENDSTATES, "" }
|
2019-06-19 10:23:22 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
AIStateDef turnBot[] = {
|
|
|
|
{ STATE_MOVEDOWN, "ent_turnbot_walkdown" },
|
|
|
|
{ STATE_MOVEUP, "ent_turnbot_walkup" },
|
|
|
|
{ STATE_MOVELEFT, "ent_turnbot_walkleft" },
|
|
|
|
{ STATE_MOVERIGHT, "ent_turnbot_walkright" },
|
2019-06-19 11:35:14 +00:00
|
|
|
{ STATE_ENDSTATES, "" }
|
2019-06-19 10:23:22 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
AIStateDef deadEye[] = {
|
|
|
|
{ STATE_MOVEDOWN, "ent_deadeye_walkdown" },
|
|
|
|
{ STATE_MOVEUP, "ent_deadeye_walkup" },
|
|
|
|
{ STATE_MOVELEFT, "ent_deadeye_walkleft" },
|
|
|
|
{ STATE_MOVERIGHT, "ent_deadeye_walkright" },
|
2019-06-19 11:35:14 +00:00
|
|
|
{ STATE_ENDSTATES, "" }
|
2019-06-19 10:23:22 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
AIStateDef meerkat[] = {
|
|
|
|
{ STATE_MEER_MOVE, "ent_meerkat_dirtmove" },
|
|
|
|
{ STATE_MEER_APPEAR, "ent_meerkat_appear" },
|
|
|
|
{ STATE_MEER_BITE, "ent_meerkat_bite" },
|
|
|
|
{ STATE_MEER_DISAPPEAR, "ent_meerkat_disappear" },
|
|
|
|
{ STATE_MEER_LOOK, "ent_meerkat_look" },
|
|
|
|
};
|
|
|
|
|
|
|
|
AIStateDef goodFairy[] = {
|
|
|
|
{ STATE_MOVEDOWN, "ent_goodfairy_walkdown" },
|
|
|
|
{ STATE_MOVEUP, "ent_goodfairy_walkup" },
|
|
|
|
{ STATE_MOVELEFT, "ent_goodfairy_walkleft" },
|
|
|
|
{ STATE_MOVERIGHT, "ent_goodfairy_walkright" },
|
2019-06-19 11:35:14 +00:00
|
|
|
{ STATE_ENDSTATES, "" }
|
2019-06-19 10:23:22 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
AIStateDef badFairy[] = {
|
|
|
|
{ STATE_MOVEDOWN, "ent_badfairy_walkdown" },
|
|
|
|
{ STATE_MOVEUP, "ent_badfairy_walkup" },
|
|
|
|
{ STATE_MOVELEFT, "ent_badfairy_walkleft" },
|
|
|
|
{ STATE_MOVERIGHT, "ent_badfairy_walkright" },
|
2019-06-19 11:35:14 +00:00
|
|
|
{ STATE_ENDSTATES, "" }
|
2019-06-19 10:23:22 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
AIStateDef gatePuddle[] = {
|
|
|
|
{ STATE_MOVEDOWN, "ent_gatepuddle_standdown"},
|
2019-06-19 11:35:14 +00:00
|
|
|
{ STATE_ENDSTATES, "" }
|
2019-06-19 10:23:22 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
AIStateDef icePuff[] = {
|
|
|
|
{ STATE_ICEP_PEEK, "ent_icepuff_peek" },
|
|
|
|
{ STATE_ICEP_APPEAR, "ent_icepuff_appear" },
|
|
|
|
{ STATE_ICEP_THROWDOWN, "ent_icepuff_throwdown" },
|
|
|
|
{ STATE_ICEP_THROWRIGHT, "ent_icepuff_throwright" },
|
|
|
|
{ STATE_ICEP_THROWLEFT, "ent_icepuff_throwleft" },
|
|
|
|
{ STATE_ICEP_DISAPPEAR, "ent_icepuff_disappear" },
|
2019-06-19 11:35:14 +00:00
|
|
|
{ STATE_ENDSTATES, "" }
|
2019-06-19 10:23:22 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
AIStateDef buzzfly[] = {
|
|
|
|
{ STATE_MOVEDOWN, "ent_buzzfly_walkdown" },
|
|
|
|
{ STATE_MOVEUP, "ent_buzzfly_walkup" },
|
|
|
|
{ STATE_MOVELEFT, "ent_buzzfly_walkleft" },
|
|
|
|
{ STATE_MOVERIGHT, "ent_buzzfly_walkright" },
|
2019-06-19 11:35:14 +00:00
|
|
|
{ STATE_ENDSTATES, "" }
|
2019-06-19 10:23:22 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
AIStateDef fatFrog[] = {
|
|
|
|
{ STATE_STANDDOWN, "ent_fatfrog_standdown" },
|
|
|
|
{ STATE_STANDLEFT, "ent_fatfrog_standleft" },
|
|
|
|
{ STATE_STANDRIGHT, "ent_fatfrog_standright" },
|
|
|
|
{ STATE_LICKDOWN, "ent_fatfrog_lickdown" },
|
|
|
|
{ STATE_LICKLEFT, "ent_fatfrog_lickleft" },
|
|
|
|
{ STATE_LICKRIGHT, "ent_fatfrog_lickright" },
|
2019-06-19 11:35:14 +00:00
|
|
|
{ STATE_ENDSTATES, "" }
|
2019-06-19 10:23:22 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
AIStateDef dragon[] = {
|
2019-06-19 11:35:14 +00:00
|
|
|
{ STATE_ENDSTATES, "" }
|
2019-06-19 10:23:22 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
AIStateDef omniBotMissile[] = {
|
|
|
|
{ STATE_MOVEDOWN, "ent_omnibot_missile"},
|
2019-06-19 11:35:14 +00:00
|
|
|
{ STATE_ENDSTATES, "" }
|
2019-06-19 10:23:22 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
AIStateDef fourFirer[] = {
|
|
|
|
{ STATE_STANDDOWN, "ent_four_laser_down" },
|
|
|
|
{ STATE_STANDUP, "ent_four_laser_up" },
|
|
|
|
{ STATE_STANDLEFT, "ent_four_laser_left" },
|
|
|
|
{ STATE_STANDRIGHT, "ent_four_laser_right" },
|
2019-06-19 11:35:14 +00:00
|
|
|
{ STATE_ENDSTATES, "" }
|
2019-06-19 10:23:22 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
AIStateDef railRider[] = {
|
|
|
|
{ STATE_STANDDOWN, "ent_railrider_standdown" },
|
|
|
|
{ STATE_STANDUP, "ent_railrider_standup" },
|
|
|
|
{ STATE_MOVEDOWN, "ent_railrider_walkdown" },
|
|
|
|
{ STATE_MOVEUP, "ent_railrider_walkup" },
|
|
|
|
{ STATE_MOVELEFT, "ent_railrider_walkleft" },
|
|
|
|
{ STATE_MOVERIGHT, "ent_railrider_walkright" },
|
2019-06-19 11:35:14 +00:00
|
|
|
{ STATE_ENDSTATES, "" }
|
2019-06-19 10:23:22 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
AIStateDef shockBot[] = {
|
|
|
|
{ STATE_MOVEDOWN, "ent_shockbot_walk" },
|
|
|
|
{ STATE_SHOCKING, "ent_shock_spark_sit" },
|
2019-06-19 11:35:14 +00:00
|
|
|
{ STATE_ENDSTATES, "" }
|
2019-06-19 10:23:22 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
// Pushables
|
|
|
|
|
|
|
|
AIStateDef crate[] = {
|
|
|
|
{ STATE_STANDDOWN, "ent_crate_sit" },
|
|
|
|
{ STATE_FLOATING, "ent_crate_float" },
|
2019-06-19 11:35:14 +00:00
|
|
|
{ STATE_ENDSTATES, "" }
|
2019-06-19 10:23:22 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
AIStateDef barrelLight[] = {
|
|
|
|
{ STATE_STANDDOWN, "ent_barrel_light_sit" },
|
|
|
|
{ STATE_FLOATING, "ent_barrel_light_float" },
|
|
|
|
{ STATE_MELTED, "ent_barrel_light_melt" },
|
2019-06-19 11:35:14 +00:00
|
|
|
{ STATE_ENDSTATES, "" }
|
2019-06-19 10:23:22 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
AIStateDef barrelHeavy[] = {
|
|
|
|
{ STATE_STANDDOWN, "ent_barrel_heavy_sit" },
|
|
|
|
{ STATE_FLOATING, "ent_barrel_heavy_float" },
|
|
|
|
{ STATE_MELTED, "ent_barrel_heavy_melt" },
|
2019-06-19 11:35:14 +00:00
|
|
|
{ STATE_ENDSTATES, "" }
|
2019-06-19 10:23:22 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
AIStateDef barrelExplode[] = {
|
|
|
|
{ STATE_STANDDOWN, "ent_barrel_explode_sit" },
|
|
|
|
{ STATE_EXPLODING, "explosion_boom_sit" },
|
2019-06-19 11:35:14 +00:00
|
|
|
{ STATE_ENDSTATES, "" }
|
2019-06-19 10:23:22 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
AIStateDef frogStatue[] = {
|
|
|
|
{ STATE_STANDDOWN, "ent_frogstatue_sit" },
|
2019-06-19 11:35:14 +00:00
|
|
|
{ STATE_ENDSTATES, "" }
|
2019-06-19 10:23:22 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
// Weapons
|
|
|
|
|
|
|
|
AIStateDef club[] = {
|
|
|
|
{ STATE_STANDDOWN, "ent_club_sit" },
|
2019-06-19 11:35:14 +00:00
|
|
|
{ STATE_ENDSTATES, "" }
|
2019-06-19 10:23:22 +00:00
|
|
|
};
|
|
|
|
AIStateDef roboStunner[] = {
|
|
|
|
{ STATE_STANDDOWN, "ent_robostunner_sit" },
|
2019-06-19 11:35:14 +00:00
|
|
|
{ STATE_ENDSTATES, "" }
|
2019-06-19 10:23:22 +00:00
|
|
|
};
|
|
|
|
AIStateDef slugSlinger[] = {
|
|
|
|
{ STATE_STANDDOWN, "ent_slugslinger_sit" },
|
2019-06-19 11:35:14 +00:00
|
|
|
{ STATE_ENDSTATES, "" }
|
2019-06-19 10:23:22 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
// Items
|
|
|
|
|
|
|
|
AIStateDef itemChicken[] = {
|
|
|
|
{ STATE_STANDDOWN, "ent_chicken_standdown" },
|
2019-06-19 11:35:14 +00:00
|
|
|
{ STATE_ENDSTATES, "" }
|
2019-06-19 10:23:22 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
AIStateDef envelopeWhite[] = {
|
|
|
|
{ STATE_STANDDOWN, "ent_envelope_white_sit" },
|
2019-06-19 11:35:14 +00:00
|
|
|
{ STATE_ENDSTATES, "" }
|
2019-06-19 10:23:22 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
AIStateDef envelopeBlue[] = {
|
|
|
|
{ STATE_STANDDOWN, "ent_envelope_blue_sit" },
|
2019-06-19 11:35:14 +00:00
|
|
|
{ STATE_ENDSTATES, "" }
|
2019-06-19 10:23:22 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
AIStateDef envelopeRed[] = {
|
|
|
|
{ STATE_STANDDOWN, "ent_envelope_red_sit" },
|
2019-06-19 11:35:14 +00:00
|
|
|
{ STATE_ENDSTATES, "" }
|
2019-06-19 10:23:22 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
AIStateDef envelopeGreen[] = {
|
|
|
|
{ STATE_STANDDOWN, "ent_envelope_green_sit" },
|
2019-06-19 11:35:14 +00:00
|
|
|
{ STATE_ENDSTATES, "" }
|
2019-06-19 10:23:22 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
AIStateDef transceiver[] = {
|
|
|
|
{ STATE_STANDDOWN, "ent_transceiver_sit" },
|
2019-06-19 11:35:14 +00:00
|
|
|
{ STATE_ENDSTATES, "" }
|
2019-06-19 10:23:22 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
AIStateDef cell[] = {
|
|
|
|
{ STATE_STANDDOWN, "ent_cell_sit" },
|
2019-06-19 11:35:14 +00:00
|
|
|
{ STATE_ENDSTATES, "" }
|
2019-06-19 10:23:22 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
AIStateDef gooCup[] = {
|
|
|
|
{ STATE_STANDDOWN, "ent_goo_cup_sit" },
|
2019-06-19 11:35:14 +00:00
|
|
|
{ STATE_ENDSTATES, "" }
|
2019-06-19 10:23:22 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
AIStateDef gemWhite[] = {
|
|
|
|
{ STATE_STANDDOWN, "ent_gem_white_sit" },
|
2019-06-19 11:35:14 +00:00
|
|
|
{ STATE_ENDSTATES, "" }
|
2019-06-19 10:23:22 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
AIStateDef gemBlue[] = {
|
|
|
|
{ STATE_STANDDOWN, "ent_gem_blue_sit" },
|
2019-06-19 11:35:14 +00:00
|
|
|
{ STATE_ENDSTATES, "" }
|
2019-06-19 10:23:22 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
AIStateDef gemRed[] = {
|
|
|
|
{ STATE_STANDDOWN, "ent_gem_red_sit" },
|
2019-06-19 11:35:14 +00:00
|
|
|
{ STATE_ENDSTATES, "" }
|
2019-06-19 10:23:22 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
AIStateDef gemGreen[] = {
|
|
|
|
{ STATE_STANDDOWN, "ent_gem_green_sit" },
|
2019-06-19 11:35:14 +00:00
|
|
|
{ STATE_ENDSTATES, "" }
|
2019-06-19 10:23:22 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
AIStateDef cabKey[] = {
|
|
|
|
{ STATE_STANDDOWN, "ent_cabkey_sit" },
|
2019-06-19 11:35:14 +00:00
|
|
|
{ STATE_ENDSTATES, "" }
|
2019-06-19 10:23:22 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
AIStateDef teaCup[] = {
|
|
|
|
{ STATE_STANDDOWN, "ent_teacup_sit" },
|
2019-06-19 11:35:14 +00:00
|
|
|
{ STATE_ENDSTATES, "" }
|
2019-06-19 10:23:22 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
AIStateDef cookie[] = {
|
|
|
|
{ STATE_STANDDOWN, "ent_cookie_sit" },
|
2019-06-19 11:35:14 +00:00
|
|
|
{ STATE_ENDSTATES, "" }
|
2019-06-19 10:23:22 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
AIStateDef burger[] = {
|
|
|
|
{ STATE_STANDDOWN, "ent_burger_sit" },
|
2019-06-19 11:35:14 +00:00
|
|
|
{ STATE_ENDSTATES, "" }
|
2019-06-19 10:23:22 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
AIStateDef pda[] = {
|
|
|
|
{ STATE_STANDDOWN, "ent_pda_sit" },
|
2019-06-19 11:35:14 +00:00
|
|
|
{ STATE_ENDSTATES, "" }
|
2019-06-19 10:23:22 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
AIStateDef book[] = {
|
|
|
|
{ STATE_STANDDOWN, "ent_book_sit" },
|
2019-06-19 11:35:14 +00:00
|
|
|
{ STATE_ENDSTATES, "" }
|
2019-06-19 10:23:22 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
AIStateDef clipboard[] = {
|
|
|
|
{ STATE_STANDDOWN, "ent_clipboard_sit" },
|
2019-06-19 11:35:14 +00:00
|
|
|
{ STATE_ENDSTATES, "" }
|
2019-06-19 10:23:22 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
AIStateDef note[] = {
|
|
|
|
{ STATE_STANDDOWN, "ent_note_sit" },
|
2019-06-19 11:35:14 +00:00
|
|
|
{ STATE_ENDSTATES, "" }
|
2019-06-19 10:23:22 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
AIStateDef keycardWhite[] = {
|
|
|
|
{ STATE_STANDDOWN, "ent_keycard_white_sit" },
|
2019-06-19 11:35:14 +00:00
|
|
|
{ STATE_ENDSTATES, "" }
|
2019-06-19 10:23:22 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
AIStateDef keycardBlue[] = {
|
|
|
|
{ STATE_STANDDOWN, "ent_keycard_blue_sit" },
|
2019-06-19 11:35:14 +00:00
|
|
|
{ STATE_ENDSTATES, "" }
|
2019-06-19 10:23:22 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
AIStateDef keycardRed[] = {
|
|
|
|
{ STATE_STANDDOWN, "ent_keycard_red_sit" },
|
2019-06-19 11:35:14 +00:00
|
|
|
{ STATE_ENDSTATES, "" }
|
2019-06-19 10:23:22 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
AIStateDef keycardGreen[] = {
|
|
|
|
{ STATE_STANDDOWN, "ent_keycard_green_sit" },
|
2019-06-19 11:35:14 +00:00
|
|
|
{ STATE_ENDSTATES, "" }
|
2019-06-19 10:23:22 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
AIStateDef keycardPurple[] = {
|
|
|
|
{ STATE_STANDDOWN, "ent_keycard_purple_sit" },
|
2019-06-19 11:35:14 +00:00
|
|
|
{ STATE_ENDSTATES, "" }
|
2019-06-19 10:23:22 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
AIStateDef keycardBlack[] = {
|
|
|
|
{ STATE_STANDDOWN, "ent_keycard_black_sit" },
|
2019-06-19 11:35:14 +00:00
|
|
|
{ STATE_ENDSTATES, "" }
|
2019-06-19 10:23:22 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
AIStateDef magicEgg[] = {
|
|
|
|
{ STATE_STANDDOWN, "ent_magic_egg_sit" },
|
2019-06-19 11:35:14 +00:00
|
|
|
{ STATE_ENDSTATES, "" }
|
2019-06-19 10:23:22 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
AIStateDef iceBlock[] = {
|
|
|
|
{ STATE_STANDDOWN, "ent_ice_block_sit" },
|
2019-06-19 11:35:14 +00:00
|
|
|
{ STATE_ENDSTATES, "" }
|
2019-06-19 10:23:22 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
AIStateDef dollyTool1[] = {
|
|
|
|
{ STATE_STANDDOWN, "ent_dolly_tool1_sit" },
|
2019-06-19 11:35:14 +00:00
|
|
|
{ STATE_ENDSTATES, "" }
|
2019-06-19 10:23:22 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
AIStateDef dollyTool2[] = {
|
|
|
|
{ STATE_STANDDOWN, "ent_dolly_tool2_sit" },
|
2019-06-19 11:35:14 +00:00
|
|
|
{ STATE_ENDSTATES, "" }
|
2019-06-19 10:23:22 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
AIStateDef dollyTool3[] = {
|
|
|
|
{ STATE_STANDDOWN, "ent_dolly_tool3_sit" },
|
2019-06-19 11:35:14 +00:00
|
|
|
{ STATE_ENDSTATES, "" }
|
2019-06-19 10:23:22 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
AIStateDef dollyTool4[] = {
|
|
|
|
{ STATE_STANDDOWN, "ent_dolly_tool4_sit" },
|
2019-06-19 11:35:14 +00:00
|
|
|
{ STATE_ENDSTATES, "" }
|
2019-06-19 10:23:22 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
AIStateDef seed[] = {
|
|
|
|
{ STATE_STANDDOWN, "ent_seed_sit" },
|
2019-06-19 11:35:14 +00:00
|
|
|
{ STATE_ENDSTATES, "" }
|
2019-06-19 10:23:22 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
AIStateDef soda[] = {
|
|
|
|
{ STATE_STANDDOWN, "ent_soda_sit" },
|
2019-06-19 11:35:14 +00:00
|
|
|
{ STATE_ENDSTATES, "" }
|
2019-06-19 10:23:22 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
AIStateDef router[] = {
|
|
|
|
{ STATE_STANDDOWN, "ent_router_sit" },
|
2019-06-19 11:35:14 +00:00
|
|
|
{ STATE_ENDSTATES, "" }
|
2019-06-19 10:23:22 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
AIStateDef slicer[] = {
|
|
|
|
{ STATE_STANDDOWN, "ent_slicer_sit" },
|
2019-06-19 11:35:14 +00:00
|
|
|
{ STATE_ENDSTATES, "" }
|
2019-06-19 10:23:22 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
AIStateDef package[] = {
|
|
|
|
{ STATE_STANDDOWN, "ent_package_sit" },
|
2019-06-19 11:35:14 +00:00
|
|
|
{ STATE_ENDSTATES, "" }
|
2019-06-19 10:23:22 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
AIStateDef monkeystone[] = {
|
|
|
|
{ STATE_STANDDOWN, "ent_monkeystone_sit" },
|
2019-06-19 11:35:14 +00:00
|
|
|
{ STATE_ENDSTATES, "" }
|
2019-06-19 10:23:22 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
AIEntTypeInfo aiEntList[] = {
|
|
|
|
// AI.H enum name lua name list of gfx for states name of init function
|
|
|
|
//--------------------------------------------------------------------------------------------
|
|
|
|
{ AI_NONE, "AI_NONE", &none[0], aiNoneInit, NULL },
|
|
|
|
{ AI_GUY, "AI_GUY", &guy[0], aiPlayerInit, aiPlayerInit2 },
|
|
|
|
{ AI_DOLLY, "AI_DOLLY", &dolly[0], aiDollyInit, aiDollyInit2 },
|
|
|
|
{ AI_SERGEANT, "AI_SERGEANT", &sergeant[0], aiSergeantInit, aiSergeantInit2 },
|
|
|
|
{ AI_SPACEDUDE, "AI_SPACEDUDE", &spacedude[0], aiSpacedudeInit, aiSpacedudeInit2 },
|
|
|
|
{ AI_CHICKEN, "AI_CHICKEN", &chicken[0], aiChickenInit, aiChickenInit2 },
|
|
|
|
{ AI_VORTEXIAN, "AI_VORTEXIAN", &vortexian[0], aiVortexianInit, aiVortexianInit2 },
|
|
|
|
{ AI_MAINTBOT, "AI_MAINTBOT", &maintBot[0], aiMaintBotInit, aiMaintBotInit2 },
|
|
|
|
{ AI_SCIENTIST, "AI_SCIENTIST", &scientist[0], aiScientistInit, aiScientistInit2 },
|
|
|
|
{ AI_RAILRIDER, "AI_RAILRIDER", &railRider[0], aiRailRiderInit, aiRailRiderInit2 },
|
|
|
|
{ AI_RAILRIDER_ON, "AI_RAILRIDER", &railRider[0], aiRailRiderInit, aiRailRiderInit2 },
|
|
|
|
{ AI_SHOCKBOT, "AI_SHOCKBOT", &shockBot[0], aiShockBotInit, aiShockBotInit2 },
|
|
|
|
{ AI_FOURFIRER, "AI_FOURFIRER", &fourFirer[0], aiFourFirerInit, aiFourFirerInit2 },
|
|
|
|
{ AI_OMNIBOT_MISSILE, "AI_OMNIBOT_MISSILE", &omniBotMissile[0], aiOmniBotMissileInit, aiOmniBotMissileInit2 },
|
|
|
|
{ AI_GEM_ATTACK, "AI_GEM_ATTACK", &gemAttack[0], aiGemAttackInit, NULL },
|
|
|
|
{ AI_WORKER, "AI_WORKER", &worker[0], aiWorkerInit, aiWorkerInit2 },
|
|
|
|
{ AI_ACCOUNTANT, "AI_ACCOUNTANT", &accountant[0], aiAccountantInit, aiAccountantInit2 },
|
|
|
|
{ AI_SLUG_ATTACK, "AI_SLUG_ATTACK", &slugAttack[0], aiSlugAttackInit, aiSlugAttackInit2 },
|
|
|
|
{ AI_DEADWORKER, "AI_DEADWORKER", &deadWorker[0], aiDeadWorkerInit, aiDeadWorkerInit2 },
|
|
|
|
|
|
|
|
{ AI_LASER, "AI_LASER", &laser[0], aiLaserInit, aiLaserInit2 },
|
|
|
|
{ AI_DIVERTER, "AI_DIVERTER", &diverter[0], aiDiverterInit, aiDiverterInit2 },
|
|
|
|
{ AI_OMNIBOT, "AI_OMNIBOT", &omniBot[0], aiOmniBotInit, aiOmniBotInit2 },
|
|
|
|
{ AI_TURNBOT, "AI_TURNBOT", &turnBot[0], aiTurnBotInit, aiTurnBotInit2 },
|
|
|
|
{ AI_RIGHTBOT, "AI_RIGHTBOT", &rightBot[0], aiRightBotInit, aiRightBotInit2 },
|
|
|
|
{ AI_PUSHBOT, "AI_PUSHBOT", &pushBot[0], aiPushBotInit, aiPushBotInit2 },
|
|
|
|
{ AI_DEADEYE, "AI_DEADEYE", &deadEye[0], aiDeadEyeInit, aiDeadEyeInit2 },
|
|
|
|
{ AI_MEERKAT, "AI_MEERKAT", &meerkat[0], aiMeerkatInit, aiMeerkatInit2 },
|
|
|
|
{ AI_FATFROG, "AI_FATFROG", &fatFrog[0], aiFatFrogInit, aiFatFrogInit2 },
|
|
|
|
{ AI_GOODFAIRY, "AI_GOODFAIRY", &goodFairy[0], aiGoodFairyInit, aiGoodFairyInit2 },
|
|
|
|
{ AI_BADFAIRY, "AI_BADFAIRY", &badFairy[0], aiBadFairyInit, aiBadFairyInit2 },
|
|
|
|
{ AI_GATEPUDDLE, "AI_GATEPUDDLE", &gatePuddle[0], aiGatePuddleInit, aiGatePuddleInit2 },
|
|
|
|
{ AI_ICEPUFF, "AI_ICEPUFF", &icePuff[0], aiIcePuffInit, aiIcePuffInit2 },
|
|
|
|
{ AI_DRAGON, "AI_DRAGON", &dragon[0], aiDragonInit, aiDragonInit2 },
|
|
|
|
{ AI_BUZZFLY, "AI_BUZZFLY", &buzzfly[0], aiBuzzflyInit, aiBuzzflyInit2 },
|
|
|
|
{ AI_BOOMBARREL, "AI_BOOMBARREL", &barrelExplode[0], aiBarrelExplodeInit, aiBarrelExplodeInit2 },
|
|
|
|
{ AI_FROGSTATUE, "AI_FROGSTATUE", &frogStatue[0], aiFrogStatueInit, aiFrogStatueInit2 },
|
|
|
|
|
|
|
|
{ AI_MAGIC_EGG, "AI_MAGIC_EGG", &magicEgg[0], aiMagicEggInit, aiMagicEggInit2 },
|
|
|
|
{ AI_ICE_BLOCK, "AI_ICE_BLOCK", &iceBlock[0], aiIceBlockInit, aiIceBlockInit2 },
|
|
|
|
|
|
|
|
{ AI_CRATE, "AI_CRATE", &crate[0], aiCrateInit, aiCrateInit2 },
|
|
|
|
{ AI_LIGHTBARREL, "AI_LIGHTBARREL", &barrelLight[0], aiBarrelLightInit, aiBarrelLightInit2 },
|
|
|
|
{ AI_HEAVYBARREL, "AI_HEAVYBARREL", &barrelHeavy[0], aiBarrelHeavyInit, aiBarrelHeavyInit2 },
|
|
|
|
|
|
|
|
{ ITEM_CELL, "ITEM_CELL", &cell[0], aiCellInit, aiCellInit2 },
|
|
|
|
{ ITEM_ENV_WHITE, "ITEM_ENV_WHITE", &envelopeWhite[0], aiEnvelopeWhiteInit, aiEnvelopeWhiteInit2 },
|
|
|
|
{ ITEM_TRANSCEIVER, "ITEM_TRANSCEIVER", &transceiver[0], aiTransceiverInit, aiTransceiverInit2 },
|
|
|
|
{ ITEM_MONKEYSTONE, "ITEM_MONKEYSTONE", &monkeystone[0], aiMonkeystoneInit, aiMonkeystoneInit2 },
|
|
|
|
{ ITEM_GEM_WHITE, "ITEM_GEM_WHITE", &gemWhite[0], aiGemWhiteInit, aiGemWhiteInit2 },
|
|
|
|
{ ITEM_CHICKEN, "ITEM_CHICKEN", &itemChicken[0], aiItemChickenInit, aiItemChickenInit2 },
|
|
|
|
{ ITEM_GOO_CUP, "ITEM_GOO_CUP", &gooCup[0], aiGooCupInit, aiGooCupInit2 },
|
|
|
|
{ ITEM_CABKEY, "ITEM_CABKEY", &cabKey[0], aiCabKeyInit, aiCabKeyInit2 },
|
|
|
|
{ ITEM_ENV_BLUE, "ITEM_ENV_BLUE", &envelopeBlue[0], aiEnvelopeBlueInit, aiEnvelopeBlueInit2 },
|
|
|
|
{ ITEM_ENV_RED, "ITEM_ENV_RED", &envelopeRed[0], aiEnvelopeRedInit, aiEnvelopeRedInit2 },
|
|
|
|
{ ITEM_CLUB, "ITEM_CLUB", &club[0], aiClubInit, aiClubInit2 },
|
|
|
|
{ ITEM_ROBOSTUNNER, "ITEM_ROBOSTUNNER", &roboStunner[0], aiRoboStunnerInit, aiRoboStunnerInit2 },
|
|
|
|
{ ITEM_SLUGSLINGER, "ITEM_SLUGSLINGER", &slugSlinger[0], aiSlugSlingerInit, aiSlugSlingerInit2 },
|
|
|
|
|
|
|
|
{ ITEM_ENV_GREEN, "ITEM_ENV_GREEN", &envelopeGreen[0], aiEnvelopeGreenInit, aiEnvelopeGreenInit2 },
|
|
|
|
{ ITEM_GEM_BLUE, "ITEM_GEM_BLUE", &gemBlue[0], aiGemBlueInit, aiGemBlueInit2 },
|
|
|
|
{ ITEM_GEM_RED, "ITEM_GEM_RED", &gemRed[0], aiGemRedInit, aiGemRedInit2 },
|
|
|
|
{ ITEM_GEM_GREEN, "ITEM_GEM_GREEN", &gemGreen[0], aiGemGreenInit, aiGemGreenInit2 },
|
|
|
|
{ ITEM_TEACUP, "ITEM_TEACUP", &teaCup[0], aiTeaCupInit, aiTeaCupInit2 },
|
|
|
|
{ ITEM_COOKIE, "ITEM_COOKIE", &cookie[0], aiCookieInit, aiCookieInit2 },
|
|
|
|
{ ITEM_BURGER, "ITEM_BURGER", &burger[0], aiBurgerInit, aiBurgerInit2 },
|
|
|
|
{ ITEM_PDA, "ITEM_PDA", &pda[0], aiPdaInit, aiPdaInit2 },
|
|
|
|
{ ITEM_BOOK, "ITEM_BOOK", &book[0], aiBookInit, aiBookInit2 },
|
|
|
|
{ ITEM_CLIPBOARD, "ITEM_CLIPBOARD", &clipboard[0], aiClipboardInit, aiClipboardInit2 },
|
|
|
|
{ ITEM_NOTE, "ITEM_NOTE", ¬e[0], aiNoteInit, aiNoteInit2 },
|
|
|
|
{ ITEM_KEYCARD_WHITE, "ITEM_KEYCARD_WHITE", &keycardWhite[0], aiKeycardWhiteInit, aiKeycardWhiteInit2 },
|
|
|
|
{ ITEM_KEYCARD_BLUE, "ITEM_KEYCARD_BLUE", &keycardBlue[0], aiKeycardBlueInit, aiKeycardBlueInit2 },
|
|
|
|
{ ITEM_KEYCARD_RED, "ITEM_KEYCARD_RED", &keycardRed[0], aiKeycardRedInit, aiKeycardRedInit2 },
|
|
|
|
{ ITEM_KEYCARD_GREEN, "ITEM_KEYCARD_GREEN", &keycardGreen[0], aiKeycardGreenInit, aiKeycardGreenInit2 },
|
|
|
|
{ ITEM_KEYCARD_PURPLE, "ITEM_KEYCARD_PURPLE", &keycardPurple[0], aiKeycardPurpleInit, aiKeycardPurpleInit2 },
|
|
|
|
{ ITEM_KEYCARD_BLACK, "ITEM_KEYCARD_BLACK", &keycardBlack[0], aiKeycardBlackInit, aiKeycardBlackInit2 },
|
|
|
|
{ ITEM_DOLLYTOOL1, "ITEM_DOLLYTOOL1", &dollyTool1[0], aiDollyTool1Init, aiDollyTool1Init2 },
|
|
|
|
{ ITEM_DOLLYTOOL2, "ITEM_DOLLYTOOL2", &dollyTool2[0], aiDollyTool2Init, aiDollyTool2Init2 },
|
|
|
|
{ ITEM_DOLLYTOOL3, "ITEM_DOLLYTOOL3", &dollyTool3[0], aiDollyTool3Init, aiDollyTool3Init2 },
|
|
|
|
{ ITEM_DOLLYTOOL4, "ITEM_DOLLYTOOL4", &dollyTool4[0], aiDollyTool4Init, aiDollyTool4Init2 },
|
|
|
|
{ ITEM_SEED, "ITEM_SEED", &seed[0], aiSeedInit, aiSeedInit2 },
|
|
|
|
{ ITEM_SODA, "ITEM_SODA", &soda[0], aiSodaInit, aiSodaInit2 },
|
|
|
|
{ ITEM_ROUTER, "ITEM_ROUTER", &router[0], aiRouterInit, aiRouterInit2 },
|
|
|
|
{ ITEM_SLICER, "ITEM_SLICER", &slicer[0], aiSlicerInit, aiSlicerInit2 },
|
|
|
|
{ ITEM_PACKAGE, "ITEM_PACKAGE", &package[0], aiPackageInit, aiPackageInit2 },
|
|
|
|
|
|
|
|
{ END_AI_TYPES, NULL, NULL, NULL, NULL }
|
|
|
|
};
|
|
|
|
|
2019-06-19 11:55:19 +00:00
|
|
|
AI::AI() {
|
|
|
|
_ents = new Common::Array<AIEntity *>;
|
2019-06-21 04:04:05 +00:00
|
|
|
_floats = new Common::Array<AIEntity *>;
|
2019-06-24 19:03:19 +00:00
|
|
|
_arrowPaths = new Common::Array<ArrowPath *>;
|
2019-06-27 01:08:19 +00:00
|
|
|
_triggerList = new Common::Array<Trigger *>;
|
2019-06-25 03:54:05 +00:00
|
|
|
_hereList = new Common::Array<HereT *>;
|
2019-06-21 04:04:05 +00:00
|
|
|
|
2019-06-29 19:16:51 +00:00
|
|
|
warning("REMOVE: Remove for final. Used here due to lack of a MENU");
|
|
|
|
_numGems = _numGooCups = _numMonkeystones = _numInventory = _numDeliveries = 0;
|
2019-06-24 13:22:04 +00:00
|
|
|
|
|
|
|
_stunAnim = 0;
|
|
|
|
_stunTimer = g_system->getMillis();
|
2019-06-19 11:55:19 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
AI::~AI() {
|
|
|
|
delete _ents;
|
2019-06-21 04:04:05 +00:00
|
|
|
delete _floats;
|
2019-06-24 19:03:19 +00:00
|
|
|
delete _arrowPaths;
|
2019-06-27 01:08:19 +00:00
|
|
|
delete _triggerList;
|
2019-06-25 03:54:05 +00:00
|
|
|
delete _hereList;
|
2019-06-19 11:55:19 +00:00
|
|
|
}
|
|
|
|
|
2019-06-19 10:23:22 +00:00
|
|
|
bool AI::init() {
|
2019-06-19 11:56:11 +00:00
|
|
|
warning("STUB: AI::init incomplete");
|
|
|
|
|
2019-06-24 13:22:04 +00:00
|
|
|
_debugQMark = new Tile;
|
|
|
|
_debugQMark->load(g_hdb->_fileMan->findFirstData("icon_question_mark", TYPE_ICON32));
|
|
|
|
|
2019-06-20 14:03:24 +00:00
|
|
|
// Clear Waypoint list and load Waypoint graphics
|
|
|
|
_numWaypoints = 0;
|
|
|
|
_waypointGfx[0] = new Tile;
|
2019-06-20 14:40:09 +00:00
|
|
|
_waypointGfx[0]->load(g_hdb->_fileMan->findFirstData("icon_waypoint_select1", TYPE_ICON32));
|
2019-06-20 14:03:24 +00:00
|
|
|
_waypointGfx[1] = new Tile;
|
2019-06-20 14:40:09 +00:00
|
|
|
_waypointGfx[1]->load(g_hdb->_fileMan->findFirstData("icon_waypoint_select2", TYPE_ICON32));
|
2019-06-20 14:03:24 +00:00
|
|
|
_waypointGfx[2] = new Tile;
|
2019-06-20 14:40:09 +00:00
|
|
|
_waypointGfx[2]->load(g_hdb->_fileMan->findFirstData("icon_waypoint_select3", TYPE_ICON32));
|
2019-06-20 14:03:24 +00:00
|
|
|
_waypointGfx[3] = new Tile;
|
2019-06-20 14:40:09 +00:00
|
|
|
_waypointGfx[3]->load(g_hdb->_fileMan->findFirstData("icon_waypoint_select4", TYPE_ICON32));
|
2019-06-20 14:03:24 +00:00
|
|
|
|
2019-06-21 23:38:42 +00:00
|
|
|
// Setup Vars to reference SPECIAL Map Tiles
|
2019-07-01 22:48:38 +00:00
|
|
|
_useSwitchOff = g_hdb->_gfx->getTileIndex("anim_t32_switch_off01");
|
|
|
|
_useSwitchOn = g_hdb->_gfx->getTileIndex("t32_switch_on");
|
|
|
|
_useSwitch2Off = g_hdb->_gfx->getTileIndex("anim_t32_1switch_off01");
|
|
|
|
_useSwitch2On = g_hdb->_gfx->getTileIndex("t32_1switch_on");
|
|
|
|
// _useHandswitchOn = g_hdb->_gfx->getTileIndex("t32_ship_handswitch_on");
|
|
|
|
// _useHandswitchOff = g_hdb->_gfx->getTileIndex("anim_t32_ship_handswitch_off1");
|
|
|
|
_useHolderEmpty = g_hdb->_gfx->getTileIndex("anim_t32_holder_empty1");
|
|
|
|
_useHolderFull = g_hdb->_gfx->getTileIndex("t32_holder_full");
|
|
|
|
_useMailsorter = g_hdb->_gfx->getTileIndex("anim_t32_mailsort1");
|
|
|
|
_useAskcomp = g_hdb->_gfx->getTileIndex("anim_t32_askcomp1");
|
|
|
|
|
|
|
|
_targetDoorN = g_hdb->_gfx->getTileIndex("t32_door_n_1");
|
|
|
|
_targetDoorP = g_hdb->_gfx->getTileIndex("t32_door_p_1");
|
|
|
|
_targetDoorS = g_hdb->_gfx->getTileIndex("t32_door_s_1");
|
|
|
|
_targetDoorNv = g_hdb->_gfx->getTileIndex("t32_door_nv_1");
|
|
|
|
_targetDoorPv = g_hdb->_gfx->getTileIndex("t32_door_pv_1");
|
|
|
|
_targetDoorSv = g_hdb->_gfx->getTileIndex("t32_door_sv_1");
|
|
|
|
|
|
|
|
_targetDoor2N = g_hdb->_gfx->getTileIndex("t32_door2_n_1");
|
|
|
|
_targetDoor2P = g_hdb->_gfx->getTileIndex("t32_door2_p_1");
|
|
|
|
_targetDoor2S = g_hdb->_gfx->getTileIndex("t32_door2_s_1");
|
|
|
|
_targetDoor2Nv = g_hdb->_gfx->getTileIndex("t32_door2_nv_1");
|
|
|
|
_targetDoor2Pv = g_hdb->_gfx->getTileIndex("t32_door2_pv_1");
|
|
|
|
_targetDoor2Sv = g_hdb->_gfx->getTileIndex("t32_door2_sv_1");
|
|
|
|
|
|
|
|
_target2DoorN = g_hdb->_gfx->getTileIndex("t32_e2_door_n_1");
|
|
|
|
_target2DoorP = g_hdb->_gfx->getTileIndex("t32_e2_door_p_1");
|
|
|
|
_target2DoorS = g_hdb->_gfx->getTileIndex("t32_e2_door_s_1");
|
|
|
|
_target2DoorNv = g_hdb->_gfx->getTileIndex("t32_e2_door_nv_1");
|
|
|
|
_target2DoorPv = g_hdb->_gfx->getTileIndex("t32_e2_door_pv_1");
|
|
|
|
_target2DoorSv = g_hdb->_gfx->getTileIndex("t32_e2_door_sv_1");
|
|
|
|
|
|
|
|
_target3DoorN = g_hdb->_gfx->getTileIndex("t32_e3_door_n_1");
|
|
|
|
_target3DoorP = g_hdb->_gfx->getTileIndex("t32_e3_door_p_1");
|
|
|
|
_target3DoorS = g_hdb->_gfx->getTileIndex("t32_e3_door_s_1");
|
|
|
|
_target3DoorNv = g_hdb->_gfx->getTileIndex("t32_e3_door_nv_1");
|
|
|
|
_target3DoorPv = g_hdb->_gfx->getTileIndex("t32_e3_door_pv_1");
|
|
|
|
_target3DoorSv = g_hdb->_gfx->getTileIndex("t32_e3_door_sv_1");
|
|
|
|
|
|
|
|
_targetBridgeU = g_hdb->_gfx->getTileIndex("t32_bridgeup1");
|
|
|
|
_targetBridgeD = g_hdb->_gfx->getTileIndex("t32_bridgedown1");
|
|
|
|
_targetBridgeL = g_hdb->_gfx->getTileIndex("t32_bridgeleft1");
|
|
|
|
_targetBridgeR = g_hdb->_gfx->getTileIndex("t32_bridgeright1");
|
|
|
|
_targetBridgeMidLR = g_hdb->_gfx->getTileIndex("t32_mgrate_mid");
|
|
|
|
_targetBridgeMidUD = g_hdb->_gfx->getTileIndex("t32_mgrate_tbmid");
|
|
|
|
_touchplateOn = g_hdb->_gfx->getTileIndex("t32_touchplateon");
|
|
|
|
_touchplateOff = g_hdb->_gfx->getTileIndex("t32_touchplateoff");
|
|
|
|
_blockpole = g_hdb->_gfx->getTileIndex("t32_blockpole_1");
|
|
|
|
_useTeleporter = g_hdb->_gfx->getTileIndex("anim_t32_teleporter1");
|
|
|
|
|
|
|
|
_useSwitchOff = g_hdb->_gfx->getTileIndex("t32_temple_touchplate_on");
|
|
|
|
_useSwitchOff = g_hdb->_gfx->getTileIndex("t32_temple_touchplate_off");
|
|
|
|
|
|
|
|
_kcHolderWhiteOff = g_hdb->_gfx->getTileIndex("anim_t32_kcholder_white_off1");
|
|
|
|
_kcHolderWhiteOn = g_hdb->_gfx->getTileIndex("t32_kcholder_white_on");
|
|
|
|
_kcHolderBlueOff = g_hdb->_gfx->getTileIndex("anim_t32_kcholder_blue_off1");
|
|
|
|
_kcHolderBlueOn = g_hdb->_gfx->getTileIndex("t32_kcholder_blue_on");
|
|
|
|
_kcHolderRedOff = g_hdb->_gfx->getTileIndex("anim_t32_kcholder_red_off1");
|
|
|
|
_kcHolderRedOn = g_hdb->_gfx->getTileIndex("t32_kcholder_red_on");
|
|
|
|
_kcHolderGreenOff = g_hdb->_gfx->getTileIndex("anim_t32_kcholder_green_off1");
|
|
|
|
_kcHolderGreenOn = g_hdb->_gfx->getTileIndex("t32_kcholder_green_on");
|
|
|
|
_kcHolderPurpleOff = g_hdb->_gfx->getTileIndex("anim_t32_kcholder_purple_off1");
|
|
|
|
_kcHolderPurpleOn = g_hdb->_gfx->getTileIndex("t32_kcholder_purple_on");
|
|
|
|
_kcHolderBlackOff = g_hdb->_gfx->getTileIndex("anim_t32_kcholder_black_off1");
|
|
|
|
_kcHolderBlackOn = g_hdb->_gfx->getTileIndex("t32_kcholder_black_on");
|
2019-06-21 23:38:42 +00:00
|
|
|
|
2019-07-04 18:02:46 +00:00
|
|
|
// icepuff snowball
|
2019-07-04 21:33:00 +00:00
|
|
|
g_hdb->_gfx->_icepSnowballGfxDown = g_hdb->_gfx->_icepSnowballGfxLeft =
|
|
|
|
g_hdb->_gfx->_icepSnowballGfxRight = NULL;
|
2019-07-04 18:02:46 +00:00
|
|
|
|
|
|
|
// Frogglick
|
2019-07-04 21:33:00 +00:00
|
|
|
g_hdb->_gfx->_tileFroglickMiddleUD = g_hdb->_gfx->_tileFroglickMiddleLR = NULL;
|
|
|
|
g_hdb->_gfx->_tileFroglickWiggleLeft[0] = g_hdb->_gfx->_tileFroglickWiggleRight[0] = NULL;
|
2019-07-04 18:02:46 +00:00
|
|
|
|
|
|
|
// Dragon
|
2019-07-04 21:33:00 +00:00
|
|
|
g_hdb->_gfx->_gfxDragonAsleep = NULL;
|
2019-07-04 18:02:46 +00:00
|
|
|
|
|
|
|
// laser beam
|
2019-07-04 21:33:00 +00:00
|
|
|
g_hdb->_gfx->_gfxLaserbeamUD[0] = g_hdb->_gfx->_gfxLaserbeamUD[1] =
|
|
|
|
g_hdb->_gfx->_gfxLaserbeamLR[0] = g_hdb->_gfx->_gfxLaserbeamLR[1] = NULL;
|
2019-07-04 18:02:46 +00:00
|
|
|
|
2019-06-22 00:43:27 +00:00
|
|
|
_dummyPlayer.type = AI_GUY;
|
2019-06-27 00:51:02 +00:00
|
|
|
_dummyLaser.type = AI_LASERBEAM;
|
2019-06-22 16:57:44 +00:00
|
|
|
strcpy(_dummyPlayer.entityName, "Virtual Player");
|
2019-06-19 15:47:24 +00:00
|
|
|
_playerRunning = false;
|
|
|
|
|
2019-06-19 11:56:11 +00:00
|
|
|
restartSystem();
|
2019-06-19 10:23:22 +00:00
|
|
|
return true;
|
|
|
|
}
|
2019-06-19 11:56:11 +00:00
|
|
|
|
2019-06-19 18:26:48 +00:00
|
|
|
void AI::clearPersistent() {
|
|
|
|
_numGems = _numGooCups = _numMonkeystones = 0;
|
|
|
|
}
|
|
|
|
|
2019-06-19 11:56:11 +00:00
|
|
|
void AI::restartSystem() {
|
|
|
|
warning("STUB: AI::restartSystem incomplete");
|
|
|
|
|
2019-06-19 15:47:24 +00:00
|
|
|
// Clear Player
|
|
|
|
_player = NULL;
|
|
|
|
_playerDead = false;
|
|
|
|
_playerInvisible = false;
|
|
|
|
_playerOnIce = false;
|
|
|
|
_playerEmerging = false;
|
|
|
|
|
2019-06-20 14:03:50 +00:00
|
|
|
// Clean up Player Graphics Storage
|
|
|
|
memset(_horrible1Gfx, NULL, kMaxDeathFrames * sizeof(Tile *));
|
|
|
|
memset(_horrible2Gfx, NULL, kMaxDeathFrames * sizeof(Tile *));
|
|
|
|
memset(_horrible3Gfx, NULL, kMaxDeathFrames * sizeof(Tile *));
|
|
|
|
memset(_horrible4Gfx, NULL, kMaxDeathFrames * sizeof(Tile *));
|
|
|
|
memset(_plummetGfx, NULL, kMaxDeathFrames * sizeof(Tile *));
|
|
|
|
memset(_dyingGfx, NULL, kMaxDeathFrames * sizeof(Tile *));
|
|
|
|
|
|
|
|
memset(_pushdownGfx, NULL, kMaxAnimFrames * sizeof(Tile *));
|
|
|
|
memset(_pushupGfx, NULL, kMaxAnimFrames * sizeof(Tile *));
|
|
|
|
memset(_pushleftGfx, NULL, kMaxAnimFrames * sizeof(Tile *));
|
|
|
|
memset(_pushrightGfx, NULL, kMaxAnimFrames * sizeof(Tile *));
|
|
|
|
memset(_stunDownGfx, NULL, kMaxAnimFrames * sizeof(Tile *));
|
|
|
|
memset(_stunUpGfx, NULL, kMaxAnimFrames * sizeof(Tile *));
|
|
|
|
memset(_stunLeftGfx, NULL, kMaxAnimFrames * sizeof(Tile *));
|
|
|
|
memset(_stunRightGfx, NULL, kMaxAnimFrames * sizeof(Tile *));
|
|
|
|
memset(_slugDownGfx, NULL, kMaxAnimFrames * sizeof(Tile *));
|
|
|
|
memset(_slugUpGfx, NULL, kMaxAnimFrames * sizeof(Tile *));
|
|
|
|
memset(_slugLeftGfx, NULL, kMaxAnimFrames * sizeof(Tile *));
|
|
|
|
memset(_slugRightGfx, NULL, kMaxAnimFrames * sizeof(Tile *));
|
|
|
|
|
2019-07-03 20:17:34 +00:00
|
|
|
_horrible1Frames = _horrible2Frames = _horrible3Frames = _horrible4Frames = 0;
|
|
|
|
_plummetFrames = _dyingFrames = 0;
|
|
|
|
_pushdownFrames = _pushupFrames = _pushleftFrames = _pushrightFrames = 0;
|
|
|
|
_stunDownFrames = _stunUpFrames = _stunLeftFrames = _stunRightFrames = 0;
|
|
|
|
_slugDownFrames = _slugUpFrames = _slugLeftFrames = _slugRightFrames = 0;
|
|
|
|
|
2019-06-20 14:03:50 +00:00
|
|
|
if (_clubDownFrames) {
|
|
|
|
_clubDownFrames = 3;
|
|
|
|
_clubUpFrames = 3;
|
|
|
|
_clubLeftFrames = 3;
|
|
|
|
_clubRightFrames = 3;
|
|
|
|
}
|
|
|
|
|
|
|
|
memset(_clubDownGfx, NULL, kMaxAnimFrames * sizeof(Tile *));
|
|
|
|
memset(_clubUpGfx, NULL, kMaxAnimFrames * sizeof(Tile *));
|
|
|
|
memset(_clubLeftGfx, NULL, kMaxAnimFrames * sizeof(Tile *));
|
|
|
|
memset(_clubRightGfx, NULL, kMaxAnimFrames * sizeof(Tile *));
|
|
|
|
|
2019-07-04 18:02:46 +00:00
|
|
|
int i;
|
2019-07-04 21:33:00 +00:00
|
|
|
if (g_hdb->_gfx->_icepSnowballGfxDown) {
|
|
|
|
g_hdb->_gfx->_icepSnowballGfxDown->free();
|
|
|
|
g_hdb->_gfx->_icepSnowballGfxDown = NULL;
|
2019-07-04 18:02:46 +00:00
|
|
|
}
|
2019-07-04 21:33:00 +00:00
|
|
|
if (g_hdb->_gfx->_icepSnowballGfxLeft) {
|
|
|
|
g_hdb->_gfx->_icepSnowballGfxLeft->free();
|
|
|
|
g_hdb->_gfx->_icepSnowballGfxLeft = NULL;
|
2019-07-04 18:02:46 +00:00
|
|
|
}
|
2019-07-04 21:33:00 +00:00
|
|
|
if (g_hdb->_gfx->_icepSnowballGfxRight) {
|
|
|
|
g_hdb->_gfx->_icepSnowballGfxRight->free();
|
|
|
|
g_hdb->_gfx->_icepSnowballGfxRight = NULL;
|
2019-07-04 18:02:46 +00:00
|
|
|
}
|
|
|
|
|
2019-07-04 21:33:00 +00:00
|
|
|
if (g_hdb->_gfx->_tileFroglickMiddleUD) {
|
|
|
|
g_hdb->_gfx->_tileFroglickMiddleUD->free();
|
|
|
|
g_hdb->_gfx->_tileFroglickMiddleUD = NULL;
|
2019-07-04 18:02:46 +00:00
|
|
|
}
|
2019-07-04 21:33:00 +00:00
|
|
|
if (g_hdb->_gfx->_tileFroglickWiggleUD[0]) {
|
2019-07-04 18:02:46 +00:00
|
|
|
for (i = 0; i < 3; i++) {
|
2019-07-04 21:33:00 +00:00
|
|
|
g_hdb->_gfx->_tileFroglickWiggleUD[i]->free();
|
|
|
|
g_hdb->_gfx->_tileFroglickWiggleUD[i] = NULL;
|
2019-07-04 18:02:46 +00:00
|
|
|
}
|
|
|
|
}
|
|
|
|
|
2019-07-04 21:33:00 +00:00
|
|
|
if (g_hdb->_gfx->_tileFroglickMiddleLR) {
|
|
|
|
g_hdb->_gfx->_tileFroglickMiddleLR->free();
|
|
|
|
g_hdb->_gfx->_tileFroglickMiddleLR = NULL;
|
2019-07-04 18:02:46 +00:00
|
|
|
}
|
2019-07-04 21:33:00 +00:00
|
|
|
if (g_hdb->_gfx->_tileFroglickWiggleLeft[0]) {
|
2019-07-04 18:02:46 +00:00
|
|
|
for (i = 0; i < 3; i++) {
|
2019-07-04 21:33:00 +00:00
|
|
|
g_hdb->_gfx->_tileFroglickWiggleLeft[i]->free();
|
|
|
|
g_hdb->_gfx->_tileFroglickWiggleLeft[i] = NULL;
|
2019-07-04 18:02:46 +00:00
|
|
|
}
|
|
|
|
}
|
2019-07-04 21:33:00 +00:00
|
|
|
if (g_hdb->_gfx->_tileFroglickWiggleRight[0]) {
|
2019-07-04 18:02:46 +00:00
|
|
|
for (i = 0; i < 3; i++) {
|
2019-07-04 21:33:00 +00:00
|
|
|
g_hdb->_gfx->_tileFroglickWiggleRight[i]->free();
|
|
|
|
g_hdb->_gfx->_tileFroglickWiggleRight[i] = NULL;
|
2019-07-04 18:02:46 +00:00
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
// dragon! see ya!
|
2019-07-04 21:33:00 +00:00
|
|
|
if (g_hdb->_gfx->_gfxDragonAsleep) {
|
|
|
|
g_hdb->_gfx->_gfxDragonAsleep->free();
|
|
|
|
g_hdb->_gfx->_gfxDragonAsleep = NULL;
|
|
|
|
g_hdb->_gfx->_gfxDragonFlap[0]->free();
|
|
|
|
g_hdb->_gfx->_gfxDragonFlap[1]->free();
|
|
|
|
g_hdb->_gfx->_gfxDragonFlap[0] = g_hdb->_gfx->_gfxDragonFlap[1] = NULL;
|
|
|
|
g_hdb->_gfx->_gfxDragonBreathe[0]->free();
|
|
|
|
g_hdb->_gfx->_gfxDragonBreathe[1]->free();
|
|
|
|
g_hdb->_gfx->_gfxDragonBreathe[2]->free();
|
|
|
|
g_hdb->_gfx->_gfxDragonBreathe[0] = g_hdb->_gfx->_gfxDragonBreathe[1] =
|
|
|
|
g_hdb->_gfx->_gfxDragonBreathe[2] = NULL;
|
2019-07-04 18:02:46 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
// laser beams
|
2019-07-04 21:33:00 +00:00
|
|
|
if (g_hdb->_gfx->_gfxLaserbeamUD[0]) {
|
2019-07-04 18:02:46 +00:00
|
|
|
for (i = 0; i < 4; i++) {
|
2019-07-04 21:33:00 +00:00
|
|
|
g_hdb->_gfx->_gfxLaserbeamUD[i]->free();
|
|
|
|
g_hdb->_gfx->_gfxLaserbeamUDTop[i]->free();
|
|
|
|
g_hdb->_gfx->_gfxLaserbeamUDBottom[i]->free();
|
|
|
|
g_hdb->_gfx->_gfxLaserbeamLR[i]->free();
|
|
|
|
g_hdb->_gfx->_gfxLaserbeamLRLeft[i]->free();
|
|
|
|
g_hdb->_gfx->_gfxLaserbeamLRRight[i]->free();
|
|
|
|
|
|
|
|
g_hdb->_gfx->_gfxLaserbeamUD[i] = NULL;
|
|
|
|
g_hdb->_gfx->_gfxLaserbeamUDTop[i] = NULL;
|
|
|
|
g_hdb->_gfx->_gfxLaserbeamUDBottom[i] = NULL;
|
|
|
|
g_hdb->_gfx->_gfxLaserbeamLR[i] = NULL;
|
|
|
|
g_hdb->_gfx->_gfxLaserbeamLRLeft[i] = NULL;
|
|
|
|
g_hdb->_gfx->_gfxLaserbeamLRRight[i] = NULL;
|
2019-07-04 18:02:46 +00:00
|
|
|
}
|
|
|
|
}
|
|
|
|
|
2019-06-22 01:14:22 +00:00
|
|
|
// Clear the Action list
|
|
|
|
memset(_actions, 0, sizeof(_actions));
|
|
|
|
|
2019-06-25 03:54:05 +00:00
|
|
|
// Clear Teleporter list
|
|
|
|
memset(_teleporters, 0, sizeof(_teleporters));
|
|
|
|
_numTeleporters = 0;
|
|
|
|
|
2019-06-22 00:19:57 +00:00
|
|
|
// Clear the Auto-Action list
|
|
|
|
memset(_autoActions, 0, sizeof(_autoActions));
|
|
|
|
|
2019-06-27 16:58:21 +00:00
|
|
|
// Clear the Callback List
|
|
|
|
memset(_callbacks, 0, sizeof(_callbacks));
|
|
|
|
|
2019-06-19 11:56:11 +00:00
|
|
|
// Clear the Entity List
|
|
|
|
_ents->clear();
|
2019-06-19 15:47:24 +00:00
|
|
|
|
2019-06-27 02:11:28 +00:00
|
|
|
// Clear the Floats List
|
|
|
|
_floats->clear();
|
|
|
|
|
|
|
|
// Clear the Lua List
|
|
|
|
memset(_luaList, 0, sizeof(_luaList));
|
|
|
|
_numLuaList = 0;
|
|
|
|
|
2019-06-24 19:03:19 +00:00
|
|
|
// Clear Anim Targets List
|
2019-06-27 20:50:57 +00:00
|
|
|
_animTargets.clear();
|
2019-06-24 19:03:19 +00:00
|
|
|
|
|
|
|
// Clear ArrowPath List
|
|
|
|
_arrowPaths->clear();
|
|
|
|
|
2019-06-27 01:08:19 +00:00
|
|
|
// Clear Trigger List
|
|
|
|
_triggerList->clear();
|
|
|
|
|
2019-06-25 03:54:05 +00:00
|
|
|
// Clear Here List
|
|
|
|
_hereList->clear();
|
|
|
|
|
2019-06-19 15:47:24 +00:00
|
|
|
// Clear Cinematic System
|
|
|
|
_cineActive = _cameraLock = _playerLock = _cineAborted = false;
|
2019-06-20 12:04:22 +00:00
|
|
|
|
|
|
|
// Clear waypoints
|
|
|
|
memset(&_waypoints[0], 0, sizeof(_waypoints));
|
|
|
|
_numWaypoints = 0;
|
2019-07-03 15:41:31 +00:00
|
|
|
|
|
|
|
// Clear Bridges
|
|
|
|
memset(&_bridges[0], 0, sizeof(_bridges));
|
|
|
|
_numBridges = 0;
|
2019-06-19 11:56:11 +00:00
|
|
|
}
|
2019-06-22 16:55:56 +00:00
|
|
|
|
|
|
|
void AI::initAnimInfo() {
|
|
|
|
if (g_hdb->_map->checkOneTileExistInRange(_useSwitchOff, 2))
|
2019-07-01 22:48:38 +00:00
|
|
|
g_hdb->_gfx->getTile(_useSwitchOn);
|
2019-06-22 16:55:56 +00:00
|
|
|
if (g_hdb->_map->checkOneTileExistInRange(_useSwitch2Off, 2))
|
2019-07-01 22:48:38 +00:00
|
|
|
g_hdb->_gfx->getTile(_useSwitch2On);
|
2019-06-22 16:55:56 +00:00
|
|
|
if (g_hdb->_map->checkOneTileExistInRange(_useHolderEmpty, 2))
|
2019-07-01 22:48:38 +00:00
|
|
|
g_hdb->_gfx->getTile(_useHolderFull);
|
2019-06-22 16:55:56 +00:00
|
|
|
if (g_hdb->_map->checkOneTileExistInRange(_useHandswitchOff, 2))
|
2019-07-01 22:48:38 +00:00
|
|
|
g_hdb->_gfx->getTile(_useHandswitchOn);
|
2019-06-22 16:55:56 +00:00
|
|
|
|
|
|
|
if (g_hdb->_map->checkOneTileExistInRange(_targetDoorN, 4))
|
2019-07-01 22:48:38 +00:00
|
|
|
g_hdb->_gfx->cacheTileSequence(_targetDoorN, 4);
|
2019-06-22 16:55:56 +00:00
|
|
|
if (g_hdb->_map->checkOneTileExistInRange(_targetDoorP, 4))
|
2019-07-01 22:48:38 +00:00
|
|
|
g_hdb->_gfx->cacheTileSequence(_targetDoorP, 4);
|
2019-06-22 16:55:56 +00:00
|
|
|
if (g_hdb->_map->checkOneTileExistInRange(_targetDoorS, 4))
|
2019-07-01 22:48:38 +00:00
|
|
|
g_hdb->_gfx->cacheTileSequence(_targetDoorS, 4);
|
2019-06-22 16:55:56 +00:00
|
|
|
if (g_hdb->_map->checkOneTileExistInRange(_targetDoorNv, 4))
|
2019-07-01 22:48:38 +00:00
|
|
|
g_hdb->_gfx->cacheTileSequence(_targetDoorNv, 4);
|
2019-06-22 16:55:56 +00:00
|
|
|
if (g_hdb->_map->checkOneTileExistInRange(_targetDoorPv, 4))
|
2019-07-01 22:48:38 +00:00
|
|
|
g_hdb->_gfx->cacheTileSequence(_targetDoorPv, 4);
|
2019-06-22 16:55:56 +00:00
|
|
|
if (g_hdb->_map->checkOneTileExistInRange(_targetDoorSv, 4))
|
2019-07-01 22:48:38 +00:00
|
|
|
g_hdb->_gfx->cacheTileSequence(_targetDoorSv, 4);
|
2019-06-22 16:55:56 +00:00
|
|
|
|
|
|
|
if (g_hdb->_map->checkOneTileExistInRange(_targetDoor2N, 4))
|
2019-07-01 22:48:38 +00:00
|
|
|
g_hdb->_gfx->cacheTileSequence(_targetDoor2N, 4);
|
2019-06-22 16:55:56 +00:00
|
|
|
if (g_hdb->_map->checkOneTileExistInRange(_targetDoor2P, 4))
|
2019-07-01 22:48:38 +00:00
|
|
|
g_hdb->_gfx->cacheTileSequence(_targetDoor2P, 4);
|
2019-06-22 16:55:56 +00:00
|
|
|
if (g_hdb->_map->checkOneTileExistInRange(_targetDoor2S, 4))
|
2019-07-01 22:48:38 +00:00
|
|
|
g_hdb->_gfx->cacheTileSequence(_targetDoor2S, 4);
|
2019-06-22 16:55:56 +00:00
|
|
|
if (g_hdb->_map->checkOneTileExistInRange(_targetDoor2Nv, 4))
|
2019-07-01 22:48:38 +00:00
|
|
|
g_hdb->_gfx->cacheTileSequence(_targetDoor2Nv, 4);
|
2019-06-22 16:55:56 +00:00
|
|
|
if (g_hdb->_map->checkOneTileExistInRange(_targetDoor2Pv, 4))
|
2019-07-01 22:48:38 +00:00
|
|
|
g_hdb->_gfx->cacheTileSequence(_targetDoor2Pv, 4);
|
2019-06-22 16:55:56 +00:00
|
|
|
if (g_hdb->_map->checkOneTileExistInRange(_targetDoor2Sv, 4))
|
2019-07-01 22:48:38 +00:00
|
|
|
g_hdb->_gfx->cacheTileSequence(_targetDoor2Sv, 4);
|
2019-06-22 16:55:56 +00:00
|
|
|
|
|
|
|
if (g_hdb->_map->checkOneTileExistInRange(_target2DoorN, 4))
|
2019-07-01 22:48:38 +00:00
|
|
|
g_hdb->_gfx->cacheTileSequence(_target2DoorN, 4);
|
2019-06-22 16:55:56 +00:00
|
|
|
if (g_hdb->_map->checkOneTileExistInRange(_target2DoorP, 4))
|
2019-07-01 22:48:38 +00:00
|
|
|
g_hdb->_gfx->cacheTileSequence(_target2DoorP, 4);
|
2019-06-22 16:55:56 +00:00
|
|
|
if (g_hdb->_map->checkOneTileExistInRange(_target2DoorS, 4))
|
2019-07-01 22:48:38 +00:00
|
|
|
g_hdb->_gfx->cacheTileSequence(_target2DoorS, 4);
|
2019-06-22 16:55:56 +00:00
|
|
|
if (g_hdb->_map->checkOneTileExistInRange(_target2DoorNv, 4))
|
2019-07-01 22:48:38 +00:00
|
|
|
g_hdb->_gfx->cacheTileSequence(_target2DoorNv, 4);
|
2019-06-22 16:55:56 +00:00
|
|
|
if (g_hdb->_map->checkOneTileExistInRange(_target2DoorPv, 4))
|
2019-07-01 22:48:38 +00:00
|
|
|
g_hdb->_gfx->cacheTileSequence(_target2DoorPv, 4);
|
2019-06-22 16:55:56 +00:00
|
|
|
if (g_hdb->_map->checkOneTileExistInRange(_target2DoorSv, 4))
|
2019-07-01 22:48:38 +00:00
|
|
|
g_hdb->_gfx->cacheTileSequence(_target2DoorSv, 4);
|
2019-06-22 16:55:56 +00:00
|
|
|
|
|
|
|
if (g_hdb->_map->checkOneTileExistInRange(_target3DoorN, 4))
|
2019-07-01 22:48:38 +00:00
|
|
|
g_hdb->_gfx->cacheTileSequence(_target3DoorN, 4);
|
2019-06-22 16:55:56 +00:00
|
|
|
if (g_hdb->_map->checkOneTileExistInRange(_target3DoorP, 4))
|
2019-07-01 22:48:38 +00:00
|
|
|
g_hdb->_gfx->cacheTileSequence(_target3DoorP, 4);
|
2019-06-22 16:55:56 +00:00
|
|
|
if (g_hdb->_map->checkOneTileExistInRange(_target3DoorS, 4))
|
2019-07-01 22:48:38 +00:00
|
|
|
g_hdb->_gfx->cacheTileSequence(_target3DoorS, 4);
|
2019-06-22 16:55:56 +00:00
|
|
|
if (g_hdb->_map->checkOneTileExistInRange(_target3DoorNv, 4))
|
2019-07-01 22:48:38 +00:00
|
|
|
g_hdb->_gfx->cacheTileSequence(_target3DoorNv, 4);
|
2019-06-22 16:55:56 +00:00
|
|
|
if (g_hdb->_map->checkOneTileExistInRange(_target3DoorPv, 4))
|
2019-07-01 22:48:38 +00:00
|
|
|
g_hdb->_gfx->cacheTileSequence(_target3DoorPv, 4);
|
2019-06-22 16:55:56 +00:00
|
|
|
if (g_hdb->_map->checkOneTileExistInRange(_target3DoorSv, 4))
|
2019-07-01 22:48:38 +00:00
|
|
|
g_hdb->_gfx->cacheTileSequence(_target3DoorSv, 4);
|
2019-06-22 16:55:56 +00:00
|
|
|
|
|
|
|
if (g_hdb->_map->checkOneTileExistInRange(_targetBridgeU, 3))
|
2019-07-01 22:48:38 +00:00
|
|
|
g_hdb->_gfx->cacheTileSequence(_targetBridgeU, 3);
|
2019-06-22 16:55:56 +00:00
|
|
|
if (g_hdb->_map->checkOneTileExistInRange(_targetBridgeD, 3))
|
2019-07-01 22:48:38 +00:00
|
|
|
g_hdb->_gfx->cacheTileSequence(_targetBridgeD, 3);
|
2019-06-22 16:55:56 +00:00
|
|
|
if (g_hdb->_map->checkOneTileExistInRange(_targetBridgeL, 3))
|
2019-07-01 22:48:38 +00:00
|
|
|
g_hdb->_gfx->cacheTileSequence(_targetBridgeL, 3);
|
2019-06-22 16:55:56 +00:00
|
|
|
if (g_hdb->_map->checkOneTileExistInRange(_targetBridgeR, 3))
|
2019-07-01 22:48:38 +00:00
|
|
|
g_hdb->_gfx->cacheTileSequence(_targetBridgeR, 3);
|
2019-06-22 16:55:56 +00:00
|
|
|
|
2019-07-01 22:48:38 +00:00
|
|
|
g_hdb->_gfx->cacheTileSequence(_targetBridgeMidLR, 1);
|
|
|
|
g_hdb->_gfx->cacheTileSequence(_targetBridgeMidUD, 1);
|
2019-06-22 16:55:56 +00:00
|
|
|
|
|
|
|
if (g_hdb->_map->checkOneTileExistInRange(_touchplateOff, 2))
|
2019-07-01 22:48:38 +00:00
|
|
|
g_hdb->_gfx->cacheTileSequence(_touchplateOff, 2);
|
2019-06-22 16:55:56 +00:00
|
|
|
if (g_hdb->_map->checkOneTileExistInRange(_templeTouchpOff, 2))
|
2019-07-01 22:48:38 +00:00
|
|
|
g_hdb->_gfx->cacheTileSequence(_templeTouchpOff, 2);
|
2019-06-22 16:55:56 +00:00
|
|
|
if (g_hdb->_map->checkOneTileExistInRange(_blockpole, 4))
|
2019-07-01 22:48:38 +00:00
|
|
|
g_hdb->_gfx->cacheTileSequence(_blockpole, 4);
|
2019-06-22 16:55:56 +00:00
|
|
|
|
|
|
|
if (g_hdb->_map->checkOneTileExistInRange(_kcHolderWhiteOff, 2))
|
2019-07-01 22:48:38 +00:00
|
|
|
g_hdb->_gfx->getTile(_kcHolderWhiteOn);
|
2019-06-22 16:55:56 +00:00
|
|
|
if (g_hdb->_map->checkOneTileExistInRange(_kcHolderBlueOff, 2))
|
2019-07-01 22:48:38 +00:00
|
|
|
g_hdb->_gfx->getTile(_kcHolderBlueOn);
|
2019-06-22 16:55:56 +00:00
|
|
|
if (g_hdb->_map->checkOneTileExistInRange(_kcHolderRedOff, 2))
|
2019-07-01 22:48:38 +00:00
|
|
|
g_hdb->_gfx->getTile(_kcHolderRedOn);
|
2019-06-22 16:55:56 +00:00
|
|
|
if (g_hdb->_map->checkOneTileExistInRange(_kcHolderGreenOff, 2))
|
2019-07-01 22:48:38 +00:00
|
|
|
g_hdb->_gfx->getTile(_kcHolderGreenOn);
|
2019-06-22 16:55:56 +00:00
|
|
|
if (g_hdb->_map->checkOneTileExistInRange(_kcHolderPurpleOff, 2))
|
2019-07-01 22:48:38 +00:00
|
|
|
g_hdb->_gfx->getTile(_kcHolderPurpleOn);
|
2019-06-22 16:55:56 +00:00
|
|
|
if (g_hdb->_map->checkOneTileExistInRange(_kcHolderBlackOff, 2))
|
2019-07-01 22:48:38 +00:00
|
|
|
g_hdb->_gfx->getTile(_kcHolderBlackOn);
|
2019-06-22 16:55:56 +00:00
|
|
|
}
|
2019-06-23 14:03:21 +00:00
|
|
|
|
|
|
|
const char *AITypeStr[] = {
|
|
|
|
"AI_NONE",
|
|
|
|
"AI_GUY",
|
|
|
|
"AI_DOLLY",
|
|
|
|
"AI_SPACEDUDE",
|
|
|
|
"AI_SERGEANT",
|
|
|
|
"AI_SCIENTIST",
|
|
|
|
"AI_WORKER",
|
|
|
|
"AI_DEADWORKER",
|
|
|
|
"AI_ACCOUNTANT",
|
|
|
|
"AI_RAILRIDER",
|
|
|
|
"AI_RAILRIDER_ON",
|
|
|
|
"AI_VORTEXIAN",
|
|
|
|
"AI_CHICKEN",
|
|
|
|
"AI_GEM_ATTACK",
|
|
|
|
"AI_SLUG_ATTACK",
|
|
|
|
|
|
|
|
"AI_LASER",
|
|
|
|
"AI_LASERBEAM",
|
|
|
|
"AI_DIVERTER",
|
|
|
|
"AI_FOURFIRER",
|
|
|
|
"AI_OMNIBOT",
|
|
|
|
"AI_TURNBOT",
|
|
|
|
"AI_SHOCKBOT",
|
|
|
|
"AI_RIGHTBOT",
|
|
|
|
"AI_PUSHBOT",
|
|
|
|
"AI_LISTENBOT",
|
|
|
|
"AI_MAINTBOT",
|
|
|
|
"AI_OMNIBOT_MISSILE",
|
|
|
|
"AI_DEADEYE",
|
|
|
|
"AI_MEERKAT",
|
|
|
|
"AI_FATFROG",
|
|
|
|
"AI_GOODFAIRY",
|
|
|
|
"AI_BADFAIRY",
|
|
|
|
"AI_ICEPUFF",
|
|
|
|
"AI_BUZZFLY",
|
|
|
|
"AI_DRAGON",
|
|
|
|
"AI_GATEPUDDLE",
|
|
|
|
|
|
|
|
"AI_CRATE",
|
|
|
|
"AI_LIGHTBARREL",
|
|
|
|
"AI_HEAVYBARREL",
|
|
|
|
"AI_BOOMBARREL",
|
|
|
|
"AI_FROGSTATUE",
|
|
|
|
|
|
|
|
"AI_MAGIC_EGG",
|
|
|
|
"AI_ICE_BLOCK",
|
|
|
|
|
|
|
|
"ITEM_CELL",
|
|
|
|
"ITEM_ENV_WHITE",
|
|
|
|
"ITEM_ENV_RED",
|
|
|
|
"ITEM_ENV_BLUE",
|
|
|
|
"ITEM_ENV_GREEN",
|
|
|
|
"ITEM_TRANSCEIVER",
|
|
|
|
"ITEM_CLUB",
|
|
|
|
"ITEM_ROBOSTUNNER",
|
|
|
|
"ITEM_SLUGSLINGER",
|
|
|
|
"ITEM_MONKEYSTONE",
|
|
|
|
"ITEM_GEM_WHITE",
|
|
|
|
"ITEM_GEM_BLUE",
|
|
|
|
"ITEM_GEM_RED",
|
|
|
|
"ITEM_GEM_GREEN",
|
|
|
|
"ITEM_GOO_CUP",
|
|
|
|
"ITEM_TEACUP",
|
|
|
|
"ITEM_COOKIE",
|
|
|
|
"ITEM_BURGER",
|
|
|
|
"ITEM_PDA",
|
|
|
|
"ITEM_BOOK",
|
|
|
|
"ITEM_CLIPBOARD",
|
|
|
|
"ITEM_NOTE",
|
|
|
|
"ITEM_KEYCARD_WHITE",
|
|
|
|
"ITEM_KEYCARD_BLUE",
|
|
|
|
"ITEM_KEYCARD_RED",
|
|
|
|
"ITEM_KEYCARD_GREEN",
|
|
|
|
"ITEM_KEYCARD_PURPLE",
|
|
|
|
"ITEM_KEYCARD_BLACK",
|
|
|
|
"ITEM_CABKEY",
|
|
|
|
"ITEM_DOLLYTOOL1",
|
|
|
|
"ITEM_DOLLYTOOL2",
|
|
|
|
"ITEM_DOLLYTOOL3",
|
|
|
|
"ITEM_DOLLYTOOL4",
|
|
|
|
"ITEM_SEED",
|
|
|
|
"ITEM_SODA",
|
|
|
|
"ITEM_ROUTER",
|
|
|
|
"ITEM_SLICER",
|
|
|
|
"ITEM_CHICKEN",
|
|
|
|
"ITEM_PACKAGE",
|
|
|
|
|
|
|
|
"INFO_FAIRY_SRC",
|
|
|
|
"INFO_FAIRY_SRC2",
|
|
|
|
"INFO_FAIRY_SRC3",
|
|
|
|
"INFO_FAIRY_SRC4",
|
|
|
|
"INFO_FAIRY_SRC5",
|
|
|
|
"INFO_FAIRY_DEST",
|
|
|
|
"INFO_FAIRY_DEST2",
|
|
|
|
"INFO_FAIRY_DEST3",
|
|
|
|
"INFO_FAIRY_DEST4",
|
|
|
|
"INFO_FAIRY_DEST5",
|
|
|
|
"INFO_TRIGGER",
|
|
|
|
"INFO_SET_MUSIC",
|
|
|
|
"INFO_PROMOTE",
|
|
|
|
"INFO_DEMOTE",
|
|
|
|
"INFO_LUA",
|
|
|
|
"INFO_HERE",
|
|
|
|
"INFO_ARROW_TURN",
|
|
|
|
"INFO_ARROW_STOP",
|
|
|
|
"INFO_ARROW_4WAY",
|
|
|
|
"INFO_TELEPORTER1",
|
|
|
|
"INFO_TELEPORTER2",
|
|
|
|
"INFO_TELEPORTER3",
|
|
|
|
"INFO_TELEPORTER4",
|
|
|
|
"INFO_TELEPORTER5",
|
|
|
|
"INFO_TELEPORTER6",
|
|
|
|
"INFO_TELEPORTER7",
|
|
|
|
"INFO_TELEPORTER8",
|
|
|
|
"INFO_TELEPORTER9",
|
|
|
|
"INFO_TELEPORTER10",
|
|
|
|
"INFO_TELEPORTER11",
|
|
|
|
"INFO_TELEPORTER12",
|
|
|
|
"INFO_TELEPORTER13",
|
|
|
|
"INFO_TELEPORTER14",
|
|
|
|
"INFO_TELEPORTER15",
|
|
|
|
"INFO_TELEPORTER16",
|
|
|
|
"INFO_TELEPORTER17",
|
|
|
|
"INFO_TELEPORTER18",
|
|
|
|
"INFO_TELEPORTER19",
|
|
|
|
"INFO_TELEPORTER20",
|
|
|
|
"INFO_LEVELEXIT",
|
|
|
|
"INFO_ACTION1",
|
|
|
|
"INFO_ACTION2",
|
|
|
|
"INFO_ACTION3",
|
|
|
|
"INFO_ACTION4",
|
|
|
|
"INFO_ACTION5",
|
|
|
|
"INFO_ACTION6",
|
|
|
|
"INFO_ACTION7",
|
|
|
|
"INFO_ACTION8",
|
|
|
|
"INFO_ACTION9",
|
|
|
|
"INFO_ACTION10",
|
|
|
|
"INFO_ACTION11",
|
|
|
|
"INFO_ACTION12",
|
|
|
|
"INFO_ACTION13",
|
|
|
|
"INFO_ACTION14",
|
|
|
|
"INFO_ACTION15",
|
|
|
|
"INFO_ACTION16",
|
|
|
|
"INFO_ACTION17",
|
|
|
|
"INFO_ACTION18",
|
|
|
|
"INFO_ACTION19",
|
|
|
|
"INFO_ACTION20",
|
|
|
|
"INFO_ACTION_AUTO",
|
|
|
|
|
|
|
|
"INFO_QMARK",
|
|
|
|
"INFO_DEBUG",
|
|
|
|
"END_AI_TYPES"
|
|
|
|
};
|
|
|
|
|
|
|
|
const char *AIType2Str(AIType v) {
|
|
|
|
return AITypeStr[v];
|
|
|
|
}
|
|
|
|
|
2019-06-23 17:43:33 +00:00
|
|
|
const char *AIStateStr[] = {
|
|
|
|
"STATE_NONE",
|
|
|
|
"STATE_STANDDOWN",
|
|
|
|
"STATE_STANDUP",
|
|
|
|
"STATE_STANDLEFT",
|
|
|
|
"STATE_STANDRIGHT",
|
|
|
|
"STATE_BLINK",
|
|
|
|
"STATE_MOVEUP",
|
|
|
|
"STATE_MOVEDOWN",
|
|
|
|
"STATE_MOVELEFT",
|
|
|
|
"STATE_MOVERIGHT",
|
|
|
|
"STATE_DYING",
|
|
|
|
"STATE_DEAD",
|
|
|
|
"STATE_HORRIBLE1",
|
|
|
|
"STATE_HORRIBLE2",
|
|
|
|
"STATE_HORRIBLE3",
|
|
|
|
"STATE_HORRIBLE4",
|
|
|
|
"STATE_GOODJOB",
|
|
|
|
"STATE_PLUMMET",
|
|
|
|
|
|
|
|
"STATE_PUSHUP",
|
|
|
|
"STATE_PUSHDOWN",
|
|
|
|
"STATE_PUSHLEFT",
|
|
|
|
"STATE_PUSHRIGHT",
|
|
|
|
"STATE_GRABUP",
|
|
|
|
"STATE_GRABDOWN",
|
|
|
|
"STATE_GRABLEFT",
|
|
|
|
"STATE_GRABRIGHT",
|
|
|
|
"STATE_ATK_CLUB_UP",
|
|
|
|
"STATE_ATK_CLUB_DOWN",
|
|
|
|
"STATE_ATK_CLUB_LEFT",
|
|
|
|
"STATE_ATK_CLUB_RIGHT",
|
|
|
|
"STATE_ATK_STUN_DOWN",
|
|
|
|
"STATE_ATK_STUN_UP",
|
|
|
|
"STATE_ATK_STUN_LEFT",
|
|
|
|
"STATE_ATK_STUN_RIGHT",
|
|
|
|
"STATE_ATK_SLUG_DOWN",
|
|
|
|
"STATE_ATK_SLUG_UP",
|
|
|
|
"STATE_ATK_SLUG_LEFT",
|
|
|
|
"STATE_ATK_SLUG_RIGHT",
|
|
|
|
|
|
|
|
"STATE_FLOATING",
|
|
|
|
"STATE_FLOATDOWN",
|
|
|
|
"STATE_FLOATUP",
|
|
|
|
"STATE_FLOATLEFT",
|
|
|
|
"STATE_FLOATRIGHT",
|
|
|
|
"STATE_MELTED",
|
|
|
|
"STATE_SLIDING",
|
|
|
|
"STATE_SHOCKING",
|
|
|
|
"STATE_EXPLODING",
|
|
|
|
|
|
|
|
"STATE_USEDOWN",
|
|
|
|
"STATE_USEUP",
|
|
|
|
"STATE_USELEFT",
|
|
|
|
"STATE_USERIGHT",
|
|
|
|
|
|
|
|
"STATE_MEER_MOVE",
|
|
|
|
"STATE_MEER_APPEAR",
|
|
|
|
"STATE_MEER_BITE",
|
|
|
|
"STATE_MEER_DISAPPEAR",
|
|
|
|
"STATE_MEER_LOOK",
|
|
|
|
|
|
|
|
"STATE_ICEP_PEEK",
|
|
|
|
"STATE_ICEP_APPEAR",
|
|
|
|
"STATE_ICEP_THROWDOWN",
|
|
|
|
"STATE_ICEP_THROWRIGHT",
|
|
|
|
"STATE_ICEP_THROWLEFT",
|
|
|
|
"STATE_ICEP_DISAPPEAR",
|
|
|
|
|
|
|
|
"STATE_LICKDOWN",
|
|
|
|
"STATE_LICKLEFT",
|
|
|
|
"STATE_LICKRIGHT",
|
|
|
|
|
|
|
|
"STATE_DIVERTER_BL",
|
|
|
|
"STATE_DIVERTER_BR",
|
|
|
|
"STATE_DIVERTER_TL",
|
|
|
|
"STATE_DIVERTER_TR",
|
|
|
|
|
|
|
|
"STATE_KISSRIGHT",
|
|
|
|
"STATE_KISSLEFT",
|
|
|
|
"STATE_ANGRY",
|
|
|
|
"STATE_PANIC",
|
|
|
|
"STATE_LAUGH",
|
|
|
|
"STATE_DOLLYUSERIGHT",
|
|
|
|
|
|
|
|
"STATE_YELL",
|
|
|
|
|
|
|
|
"STATE_ENDSTATES"
|
|
|
|
};
|
|
|
|
|
|
|
|
const char *AIState2Str(AIState v) {
|
|
|
|
return AIStateStr[v];
|
|
|
|
}
|
|
|
|
|
2019-06-19 10:23:22 +00:00
|
|
|
} // End of Namespace
|