kolibrios/contrib/games/hydracastlelabyrinth/src/weapon.h
turbocat 74e4f2673b Added port HydraCastleLabyrinth.
git-svn-id: svn://kolibrios.org@9566 a494cfbc-eb01-0410-851d-a64ba20cac60
2022-01-03 16:16:46 +00:00

34 lines
512 B
C

#ifndef WEAPON_H
#define WEAPON_H
#include "collision.h"
#define ARROW 0
#define AXE 1
#define BOOMERANG 2
#define FIREBALL 3
#define BOMB 4
#define SWORD 5
typedef struct {
int id, type;
double x, y;
double vsp, hsp;
double grav;
double imageIndex;
int dir;
int power, timer, state, cooldown, hitflag;
Mask weaponMask;
} Weapon;
void addWeapon(int type, int x, int y);
void weaponStep(Weapon* w);
void weaponDraw(Weapon* w);
void weaponHit(Weapon* w);
void weaponDestroy(int id);
#endif