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

51 lines
1.1 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
);