dos-vga-arena-shooter-game/combat.h

59 lines
1.3 KiB
C

#include "movement.h"
int attemptToFireRabbitBullet(
struct RabbitPosition*,
struct RabbitWeaponry*,
struct BulletPosition[]
);
void advanceRabbitBullets(
struct BulletPosition[],
struct RabbitWeaponry*
);
void handleRabbitBulletToEnemyCollisions(
struct BulletPosition[],
struct EnemyPosition[]
);
int handleRabbitToEnemyCollisions(
struct RabbitPosition*,
struct EnemyPosition[]
);
int handleEnemyBulletToRabbitCollisions(
struct BulletPosition enemyBulletPosition[],
struct RabbitPosition *rabbitPosition
);
void buildCollisionGrids(
struct BulletPosition rabbitBulletPosition[],
struct BulletPosition enemyBulletPosition[],
struct RabbitPosition *rabbitPosition,
struct EnemyPosition enemyPosition[],
struct PlayerPowerup *playerPowerup
);
void attemptToFireEnemyBullets(
struct EnemyPosition[],
struct BulletPosition enemyBulletPosition[],
struct RabbitPosition*,
int difficulty
);
void advanceEnemyBullets(
struct BulletPosition[]
);
int handleRabbitToPowerupCollision(
struct RabbitPosition *rabbitPosition,
struct PlayerPowerup *playerPowerup
);
void handleEnemyKills(
struct EnemyPosition enemyPosition[],
struct GlobalGameState *globalGameState,
struct PlayerPowerup *playerPowerup
);
void fireCurrentWeaponOnce(struct RabbitWeaponry*);