mirror of
https://github.com/Cesarus85/ringfall-mjolnir-vr.git
synced 2026-10-28 02:00:36 +01:00
93 lines
1.9 KiB
C
93 lines
1.9 KiB
C
/*
|
|
AI_SCRIPT.H
|
|
|
|
header included in hcex build.
|
|
*/
|
|
|
|
#ifndef __AI_SCRIPT_H
|
|
#define __AI_SCRIPT_H
|
|
#pragma once
|
|
|
|
/* ---------- headers */
|
|
|
|
#include "math/real_math.h"
|
|
|
|
/* ---------- constants */
|
|
|
|
/* ---------- macros */
|
|
|
|
/* ---------- structures */
|
|
|
|
struct platoon_datum;
|
|
|
|
struct ai_script_vehicle_enterable
|
|
{
|
|
long vehicle_index;
|
|
real radius;
|
|
short team_bitmask;
|
|
short actor_type_bitmask;
|
|
};
|
|
|
|
struct ai_script_platoon_iterator
|
|
{
|
|
long encounter_index;
|
|
long platoon_index;
|
|
long last_platoon_index;
|
|
};
|
|
|
|
struct ai_script_actor_reference_iterator
|
|
{
|
|
long encounter_index;
|
|
long squad_index;
|
|
long platoon_index;
|
|
long actor_encounter_index;
|
|
long actor_index;
|
|
long next_actor_index;
|
|
};
|
|
|
|
/* ---------- prototypes/AI_SCRIPT.C */
|
|
|
|
void ai_script_initialize(
|
|
void);
|
|
void ai_script_dispose(
|
|
void);
|
|
void ai_script_initialize_for_new_map(
|
|
void);
|
|
void ai_script_dispose_from_old_map(
|
|
void);
|
|
void ai_scripting_reconnect(
|
|
void);
|
|
void ai_scripting_erase_all(void);
|
|
void ai_index_platoon_iterator_new(
|
|
long ai_reference,
|
|
struct ai_script_platoon_iterator *iterator);
|
|
struct platoon_datum *ai_index_platoon_iterator_next(
|
|
struct ai_script_platoon_iterator *iterator);
|
|
struct ai_script_vehicle_enterable *ai_scripting_find_vehicle_enterable(
|
|
long vehicle_index);
|
|
void ai_scripting_attach_unit(
|
|
long unit_index,
|
|
long ai_reference);
|
|
void ai_scripting_magically_see_unit(
|
|
long ai_reference,
|
|
long unit_index);
|
|
void ai_index_actor_iterator_new(
|
|
long ai_reference,
|
|
struct ai_script_actor_reference_iterator *iterator);
|
|
struct actor_datum *ai_index_actor_iterator_next(
|
|
struct ai_script_actor_reference_iterator *iterator);
|
|
void ai_scripting_go_to_vehicle(
|
|
long ai_reference,
|
|
long unit_index,
|
|
char const *seat_substring_name);
|
|
void ai_scripting_go_to_vehicle_override(
|
|
long ai_reference,
|
|
long unit_index,
|
|
char const *seat_substring_name);
|
|
|
|
/* ---------- globals */
|
|
|
|
/* ---------- public code */
|
|
|
|
#endif // __AI_SCRIPT_H
|