aboutsummaryrefslogtreecommitdiff
path: root/src/enemies/knight.h
blob: a709fc878b5aedd9eb81b96404ef114cd46b5c04 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
#ifndef KNIGHT_H
#define KNIGHT_H

#include "../collision.h"

typedef struct {
	int id, type;
	double x, y,
		   vsp, grav;
	int dir, state, timer;
	double imageIndex;
	int hp, invincible;
	int shieldhit;
	
	Mask mask;
} Knight;

void createKnight(int x, int y, int type);

void knightStep(Knight* k);
void knightDraw(Knight* k);

#endif