102 Dalmatians: Puppies to the Rescue
Decompilation Source Reference | GitLab repository
Loading...
Searching...
No Matches
functions.h
Go to the documentation of this file.
1/* Recovered declarations; ABI and original layout preserved. */
2#ifndef PCDOGS_COMPONENT_FUNCTIONS_H
3#define PCDOGS_COMPONENT_FUNCTIONS_H
6#include "pcdogs/math/types.h"
8
10
12
13uint16_t Component_GetDamageAmount(struct Component_ProjectileActorView *comp, int32_t *out_hit_flag);
14
16
17void Component_RefreshCollisionRanges(struct Component_CollisionRecord *collision_records, int32_t slot_count);
18
19void Component_UpdateCollisionDetection(struct Component_CollisionRecord *collision_records, int32_t slot_count, struct Actor_State *actor, struct Actor_State *other_actor, struct Math_Vec3I32 *test_pos);
20
21int32_t Component_GetTeamID(struct Actor_State *actor);
22
24
25int32_t Component_GetSpawnFrame(struct Actor_State *actor);
26
27BOOL Component_CheckHeightConstraint(struct Actor_State *actor, struct Component_Definition *definition);
28
30
32
34
35int32_t Component_GetCollisionCooldownFrames(struct Component_Definition const *definition);
36
37uint32_t Component_GetSpeedRange(struct Actor_State *actor);
38
39BOOL Component_IsAirborneTarget(struct Actor_State *actor);
40
41struct Actor_State *Component_SpawnFromCollisionRecord(struct Actor_State *owner_actor, struct Actor_State *target_actor, struct Component_CollisionRecord *collision_record);
42
44
45void Component_TrackTarget(struct Component_ProjectileActorView *comp, struct Component_Definition *definition, int16_t turn_rate);
46
47void Component_PlayPositionalSound(struct Component_Definition *component_def, struct Actor_State *actor, int32_t sound_slot_index);
48
50
51struct Actor_State *Component_CreateActor(struct Component_Definition *component_def, struct Actor_State *spawn_source, struct Actor_State *owner_actor, int32_t actor_kind);
52
54
56
58
59struct Actor_State *Component_SpawnFollowupProjectile(struct Component_Definition *component_def, struct Actor_State *source_actor, struct Actor_State *parent_actor);
60
61void Component_AttachToOwner(struct Actor_State *owner_actor, struct Component_ProjectileActorView *comp, struct Math_Vec3I32 *local_pos);
62
64
65#endif /* PCDOGS_COMPONENT_FUNCTIONS_H */
struct Actor_State * Component_GetOwnerActor(struct Actor_State *actor)
Definition lifecycle.c:39
int32_t Component_GetSpawnFrame(struct Actor_State *actor)
Definition lifecycle.c:47
uint16_t Component_GetDamageAmount(struct Component_ProjectileActorView *comp, int32_t *out_hit_flag)
Definition properties.c:16
void Component_TrackTarget(struct Component_ProjectileActorView *comp, struct Component_Definition *definition, int16_t turn_rate)
Definition collision.c:383
int32_t Component_GetMovementSpeedLimitQ12(struct Component_MovementParametersView *movement)
Definition properties.c:40
void Component_PlayPositionalSound(struct Component_Definition *component_def, struct Actor_State *actor, int32_t sound_slot_index)
Definition properties.c:202
void Component_InitializeProjectile(struct Component_ProjectileActorView *comp, struct Component_Definition *definition)
Definition lifecycle.c:276
struct Actor_State * Component_SpawnFollowupProjectile(struct Component_Definition *component_def, struct Actor_State *source_actor, struct Actor_State *parent_actor)
Definition lifecycle.c:538
int32_t Component_GetMovementAccelerationQ12(struct Component_MovementParametersView *movement)
Definition properties.c:60
int32_t Component_GetCollisionCooldownFrames(struct Component_Definition const *definition)
Definition collision.c:364
void Component_ApplyImpactReflection(struct Component_ProjectileActorView *comp)
Definition collision.c:449
void Component_RefreshCollisionRanges(struct Component_CollisionRecord *collision_records, int32_t slot_count)
Definition collision.c:42
void Component_SetVelocityFromDirection(struct Component_ProjectileActorView *comp, struct Component_Definition *definition)
Definition properties.c:215
void Component_AttachToOwner(struct Actor_State *owner_actor, struct Component_ProjectileActorView *comp, struct Math_Vec3I32 *local_pos)
Definition lifecycle.c:586
BOOL Component_CheckHeightConstraint(struct Actor_State *actor, struct Component_Definition *definition)
Definition collision.c:352
void Component_UpdateCollisionDetection(struct Component_CollisionRecord *collision_records, int32_t slot_count, struct Actor_State *actor, struct Actor_State *other_actor, struct Math_Vec3I32 *test_pos)
void Component_UpdateProjectileLogic(struct Component_ProjectileActorView *comp)
Definition lifecycle.c:407
int16_t Component_GetMovementTurnStep(struct Component_MovementParametersView *movement)
Definition properties.c:50
void Component_CalculateOrientation(struct Component_ProjectileActorView *comp, struct Component_Definition *definition)
Definition properties.c:83
BOOL Component_HasSpawnCapacity(struct Component_Definition *definition)
Definition lifecycle.c:30
struct Actor_State * Component_CreateActor(struct Component_Definition *component_def, struct Actor_State *spawn_source, struct Actor_State *owner_actor, int32_t actor_kind)
Definition lifecycle.c:344
uint32_t Component_GetSpeedRange(struct Actor_State *actor)
Definition properties.c:70
int32_t Component_CheckActorCollisionTypeAdapter(struct Component_ProjectileActorView *comp, struct Actor_State *other_actor)
Definition collision.c:19
int32_t Component_CalculateCollisionRange(struct Component_Definition *definition)
Definition collision.c:28
struct Actor_State * Component_SpawnFromCollisionRecord(struct Actor_State *owner_actor, struct Actor_State *target_actor, struct Component_CollisionRecord *collision_record)
Definition lifecycle.c:54
BOOL Component_IsAirborneTarget(struct Actor_State *actor)
Definition collision.c:376
int32_t Component_GetTeamID(struct Actor_State *actor)
Definition properties.c:28
void Projectile_DestroyAllLiveActors(void)
Definition lifecycle.c:655
struct Actor_State * parent_actor
Definition types.h:488