-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathrace.h
41 lines (33 loc) · 865 Bytes
/
race.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
//
// Created by abel on 29/09/18.
//
#ifndef RACE_H
#define RACE_H
/**
* Function executed only first time mode is executed
*/
void race_mode_setup();
/**
* Function executed when mode is stopped and relaunch.
* If on_mode_create is executed, then this will be executed
*/
void race_mode_start();
/**
* Function executed when mode is paused an resume ( When someone press the mode assigned key ).
* If on_mode_start is executed, then this will be executed
*/
void race_mode_resume();
/**
* Function executed when mode is paused ( When someone press the mode assigned key )
*/
void race_mode_pause();
/**
* Function executed when mode is stopped ( When someone press a different mode assigned key ). Its always be executed after
* on_mode_pause.
*/
void race_mode_stop();
/**
* Main loop of the mode
*/
void race_mode_loop();
#endif //RACE_H