-
Notifications
You must be signed in to change notification settings - Fork 0
/
virus.h
49 lines (42 loc) · 858 Bytes
/
virus.h
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
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
#ifndef LOST_IN_SPACE_VIRUS
#define LOST_IN_SPACE_VIRUS
#include "splashkit.h"
#include <vector>
// using namespace std;
enum virus_kind
{
VIRUS1,
VIRUS2,
VIRUS3,
};
/**
* @brief tracks all details for the virus
* virus_sprite tracks position
* kind the selected virus
*/
struct virus_data
{
sprite virus_sprite;
virus_kind kind;
};
/**
* @brief Randomised virus appears on screen
*
* @param x horiztonal position
* @param y vertical position
* @return virus_data
*/
virus_data new_virus(double x, double y);
/**
* @brief draw virus to screen
*
* @param virus_to_draw procedure to draw virus to screen
*/
void draw_virus(const virus_data &virus_to_draw);
/**
* @brief Camera, actions and position updates of virus
*
* @param virus_to_update update action
*/
void update_virus(virus_data &virus_to_update);
#endif