102 Dalmatians: Puppies to the Rescue
Decompilation Source Reference |
GitLab repository
Toggle main menu visibility
Loading...
Searching...
No Matches
constants.h
Go to the documentation of this file.
1
#ifndef PCDOGS_CHECKERS_CONSTANTS_H
2
#define PCDOGS_CHECKERS_CONSTANTS_H
3
4
#include <stdint.h>
5
6
#include "
pcdogs/checkers/enums.h
"
7
8
#define CHECKERS_PLAYER1_BIT ((int32_t)(1u << 0))
9
#define CHECKERS_PLAYER2_BIT ((int32_t)(1u << 1))
10
#define CHECKERS_PLAYER_MASK (CHECKERS_PLAYER1_BIT | CHECKERS_PLAYER2_BIT)
11
#define CHECKERS_COORDINATE_MASK ((int32_t)7)
12
#define CHECKERS_BOARD_SIDE ((int32_t)8)
13
#define CHECKERS_LAST_COORDINATE ((int32_t)7)
14
#define CHECKERS_COORDINATE_BITS ((int32_t)3)
15
#define CHECKERS_MAN_VALUE ((int32_t)100)
16
#define CHECKERS_KING_VALUE ((int32_t)200)
17
#define CHECKERS_EDGE_PENALTY ((int32_t)10)
18
#define CHECKERS_RENDER_NODE_MASK ((int32_t)63)
19
20
enum
Checkers_Difficulty
21
{
22
CHECKERS_DIFFICULTY_EASY
= 0,
23
CHECKERS_DIFFICULTY_NORMAL
= 1,
24
CHECKERS_DIFFICULTY_HARD
= 2
25
};
26
27
#define CHECKERS_SIMPLE_STEP_DELTA ((uint32_t)2)
28
#define CHECKERS_CAPTURE_STEP_DELTA ((uint32_t)4)
29
#define CHECKERS_EASY_SCORE_JITTER ((int32_t)100)
30
#define CHECKERS_NORMAL_SCORE_JITTER ((int32_t)50)
31
#define CHECKERS_HARD_SCORE_JITTER ((int32_t)10)
32
33
enum
Checkers_NavigationCommand
34
{
35
CHECKERS_NAV_SOURCE_CELL
= 115,
36
CHECKERS_NAV_DESTINATION_CELL
= 116,
37
CHECKERS_NAV_SELECTABLE_CELL
= 117
38
};
39
40
enum
Checkers_PathQuery
: uint32_t
41
{
42
CHECKERS_PATH_SOURCE
= 0xffffb253u,
43
CHECKERS_PATH_DESTINATION
= 0xffffb254u,
44
CHECKERS_PATH_CURRENT
= 0xffffb245u
45
};
46
47
#define CHECKERS_NAV_CURRENT_TARGET ((int32_t)0xb245)
48
#define CHECKERS_TRACE_UNBOUNDED ((int32_t)0x7fffffff)
49
#define CHECKERS_SEARCH_MIN_SCORE ((uint32_t)0x80000001)
50
#define CHECKERS_MAX_SEARCH_DEPTH ((int32_t)10)
51
52
#endif
Checkers_PathQuery
Checkers_PathQuery
Definition
constants.h:41
CHECKERS_PATH_CURRENT
@ CHECKERS_PATH_CURRENT
Definition
constants.h:44
CHECKERS_PATH_SOURCE
@ CHECKERS_PATH_SOURCE
Definition
constants.h:42
CHECKERS_PATH_DESTINATION
@ CHECKERS_PATH_DESTINATION
Definition
constants.h:43
Checkers_Difficulty
Checkers_Difficulty
Definition
constants.h:21
CHECKERS_DIFFICULTY_HARD
@ CHECKERS_DIFFICULTY_HARD
Definition
constants.h:24
CHECKERS_DIFFICULTY_EASY
@ CHECKERS_DIFFICULTY_EASY
Definition
constants.h:22
CHECKERS_DIFFICULTY_NORMAL
@ CHECKERS_DIFFICULTY_NORMAL
Definition
constants.h:23
Checkers_NavigationCommand
Checkers_NavigationCommand
Definition
constants.h:34
CHECKERS_NAV_SELECTABLE_CELL
@ CHECKERS_NAV_SELECTABLE_CELL
Definition
constants.h:37
CHECKERS_NAV_DESTINATION_CELL
@ CHECKERS_NAV_DESTINATION_CELL
Definition
constants.h:36
CHECKERS_NAV_SOURCE_CELL
@ CHECKERS_NAV_SOURCE_CELL
Definition
constants.h:35
enums.h
include
pcdogs
checkers
constants.h
Generated by
1.17.0