2024-02-27 13:16:16 +00:00
|
|
|
#include "movement.h"
|
|
|
|
int attemptToFireRabbitBullet(
|
2024-02-25 13:43:30 +00:00
|
|
|
struct RabbitPosition*,
|
|
|
|
struct RabbitWeaponry*,
|
|
|
|
struct BulletPosition[]
|
|
|
|
);
|
|
|
|
|
|
|
|
void advanceRabbitBullets(
|
|
|
|
struct BulletPosition[],
|
|
|
|
struct RabbitWeaponry*
|
|
|
|
);
|
|
|
|
|
|
|
|
void handleRabbitBulletToEnemyCollisions(
|
|
|
|
struct BulletPosition[],
|
2024-03-04 22:38:03 +00:00
|
|
|
struct EnemyPosition[],
|
|
|
|
struct RabbitWeaponry*
|
2024-02-25 13:43:30 +00:00
|
|
|
);
|
2024-02-25 17:52:42 +00:00
|
|
|
|
2024-02-26 12:52:59 +00:00
|
|
|
int handleRabbitToEnemyCollisions(
|
2024-02-25 17:52:42 +00:00
|
|
|
struct RabbitPosition*,
|
|
|
|
struct EnemyPosition[]
|
|
|
|
);
|
2024-02-25 20:48:19 +00:00
|
|
|
|
2024-02-26 12:52:59 +00:00
|
|
|
int handleEnemyBulletToRabbitCollisions(
|
|
|
|
struct BulletPosition enemyBulletPosition[],
|
|
|
|
struct RabbitPosition *rabbitPosition
|
|
|
|
);
|
|
|
|
|
2024-02-25 20:48:19 +00:00
|
|
|
void buildCollisionGrids(
|
|
|
|
struct BulletPosition rabbitBulletPosition[],
|
2024-02-26 12:52:59 +00:00
|
|
|
struct BulletPosition enemyBulletPosition[],
|
2024-02-25 20:48:19 +00:00
|
|
|
struct RabbitPosition *rabbitPosition,
|
2024-02-27 13:16:16 +00:00
|
|
|
struct EnemyPosition enemyPosition[],
|
|
|
|
struct PlayerPowerup *playerPowerup
|
2024-02-25 20:48:19 +00:00
|
|
|
);
|
2024-02-25 21:59:04 +00:00
|
|
|
|
|
|
|
void attemptToFireEnemyBullets(
|
|
|
|
struct EnemyPosition[],
|
|
|
|
struct BulletPosition enemyBulletPosition[],
|
2024-02-26 12:52:59 +00:00
|
|
|
struct RabbitPosition*,
|
|
|
|
int difficulty
|
2024-02-25 21:59:04 +00:00
|
|
|
);
|
|
|
|
|
|
|
|
void advanceEnemyBullets(
|
|
|
|
struct BulletPosition[]
|
|
|
|
);
|
2024-02-27 13:16:16 +00:00
|
|
|
|
|
|
|
int handleRabbitToPowerupCollision(
|
|
|
|
struct RabbitPosition *rabbitPosition,
|
|
|
|
struct PlayerPowerup *playerPowerup
|
|
|
|
);
|
2024-03-01 02:29:23 +00:00
|
|
|
|
|
|
|
void handleEnemyKills(
|
|
|
|
struct EnemyPosition enemyPosition[],
|
|
|
|
struct GlobalGameState *globalGameState,
|
2024-03-01 12:55:01 +00:00
|
|
|
struct PlayerPowerup *playerPowerup,
|
|
|
|
struct RabbitWeaponry *rabbitWeaponry
|
2024-03-01 02:29:23 +00:00
|
|
|
);
|
|
|
|
|
|
|
|
void fireCurrentWeaponOnce(struct RabbitWeaponry*);
|
2024-03-02 01:40:51 +00:00
|
|
|
|
|
|
|
int maybeFireShotCount(
|
|
|
|
struct BulletPosition rabbitBulletPosition[],
|
|
|
|
int availableBullets[],
|
|
|
|
int count
|
|
|
|
);
|