Book a Demo!
CoCalc Logo Icon
StoreFeaturesDocsShareSupportNewsAboutPoliciesSign UpSign In
MorsGames
GitHub Repository: MorsGames/sm64plus
Path: blob/master/include/course_table.h
7854 views
1
#ifndef COURSE_TABLE_H
2
#define COURSE_TABLE_H
3
4
// Start of the 3 cap courses in a row.
5
#define COURSE_CAP_COURSES COURSE_COTMC
6
7
#define DEFINE_COURSE(courseenum, _1) courseenum,
8
#define DEFINE_COURSES_END() \
9
COURSE_BONUS_STAGES, \
10
COURSE_STAGES_MAX = COURSE_BONUS_STAGES - 1, \
11
COURSE_STAGES_COUNT = COURSE_STAGES_MAX,
12
13
#define DEFINE_BONUS_COURSE(courseenum, _1) courseenum,
14
15
enum CourseNum
16
{
17
#include "levels/course_defines.h"
18
COURSE_END, // To mark end + 1 for marking max and count.
19
// TODO: clean this up. This is still bad. Which
20
// one is clearer? Need to get rid of one of these.
21
COURSE_MAX = COURSE_END - 1,
22
COURSE_COUNT = COURSE_MAX,
23
COURSE_MIN = COURSE_NONE + 1
24
};
25
26
#undef DEFINE_COURSE
27
#undef DEFINE_COURSES_END
28
#undef DEFINE_BONUS_COURSE
29
30
#define COURSE_IS_MAIN_COURSE(cmd) (cmd >= COURSE_MIN && cmd <= COURSE_STAGES_MAX)
31
32
#endif // COURSE_TABLE_H
33
34