aboutsummaryrefslogtreecommitdiff
path: root/src/entities/soldato.h
blob: 460c799f158514d67fb8de9ee8261e429acddeae (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
#include "gameCommon.h"
#include "entity.h"
#include "PID.h"

#ifndef SOLDATO_H
#define SOLDATO_H

typedef struct Soldato {
	EntityFlyToPointInfo flyToPoint;

	EntityId leaderId;
	EntityFingerprint leaderFingerprint;

	EntityId followerId;
	EntityFingerprint followerFingerprint;
} Soldato;

void initSoldato(Entity * entity, Game * game);
void closeSoldato(Entity * entity);
void updateSoldato(Game * game, Entity * entity);
void drawSoldato(Game * game, Entity * entity);

void setSoldatoLeader(Entity * entity1, Entity * entity2);

#endif