102 Dalmatians: Puppies to the Rescue
Decompilation Source Reference | GitLab repository
Loading...
Searching...
No Matches
constants.h File Reference
#include <stdint.h>
#include "pcdogs/checkers/enums.h"

Go to the source code of this file.

Macros

#define CHECKERS_PLAYER1_BIT   ((int32_t)(1u << 0))
#define CHECKERS_PLAYER2_BIT   ((int32_t)(1u << 1))
#define CHECKERS_PLAYER_MASK   (CHECKERS_PLAYER1_BIT | CHECKERS_PLAYER2_BIT)
#define CHECKERS_COORDINATE_MASK   ((int32_t)7)
#define CHECKERS_BOARD_SIDE   ((int32_t)8)
#define CHECKERS_LAST_COORDINATE   ((int32_t)7)
#define CHECKERS_COORDINATE_BITS   ((int32_t)3)
#define CHECKERS_MAN_VALUE   ((int32_t)100)
#define CHECKERS_KING_VALUE   ((int32_t)200)
#define CHECKERS_EDGE_PENALTY   ((int32_t)10)
#define CHECKERS_RENDER_NODE_MASK   ((int32_t)63)
#define CHECKERS_SIMPLE_STEP_DELTA   ((uint32_t)2)
#define CHECKERS_CAPTURE_STEP_DELTA   ((uint32_t)4)
#define CHECKERS_EASY_SCORE_JITTER   ((int32_t)100)
#define CHECKERS_NORMAL_SCORE_JITTER   ((int32_t)50)
#define CHECKERS_HARD_SCORE_JITTER   ((int32_t)10)
#define CHECKERS_NAV_CURRENT_TARGET   ((int32_t)0xb245)
#define CHECKERS_TRACE_UNBOUNDED   ((int32_t)0x7fffffff)
#define CHECKERS_SEARCH_MIN_SCORE   ((uint32_t)0x80000001)
#define CHECKERS_MAX_SEARCH_DEPTH   ((int32_t)10)

Enumerations

enum  Checkers_Difficulty { CHECKERS_DIFFICULTY_EASY = 0 , CHECKERS_DIFFICULTY_NORMAL = 1 , CHECKERS_DIFFICULTY_HARD = 2 }
enum  Checkers_NavigationCommand { CHECKERS_NAV_SOURCE_CELL = 115 , CHECKERS_NAV_DESTINATION_CELL = 116 , CHECKERS_NAV_SELECTABLE_CELL = 117 }
enum  Checkers_PathQuery : uint32_t { CHECKERS_PATH_SOURCE = 0xffffb253u , CHECKERS_PATH_DESTINATION = 0xffffb254u , CHECKERS_PATH_CURRENT = 0xffffb245u }

Macro Definition Documentation

◆ CHECKERS_BOARD_SIDE

#define CHECKERS_BOARD_SIDE   ((int32_t)8)

Definition at line 12 of file constants.h.

◆ CHECKERS_CAPTURE_STEP_DELTA

#define CHECKERS_CAPTURE_STEP_DELTA   ((uint32_t)4)

Definition at line 28 of file constants.h.

◆ CHECKERS_COORDINATE_BITS

#define CHECKERS_COORDINATE_BITS   ((int32_t)3)

Definition at line 14 of file constants.h.

◆ CHECKERS_COORDINATE_MASK

#define CHECKERS_COORDINATE_MASK   ((int32_t)7)

Definition at line 11 of file constants.h.

◆ CHECKERS_EASY_SCORE_JITTER

#define CHECKERS_EASY_SCORE_JITTER   ((int32_t)100)

Definition at line 29 of file constants.h.

◆ CHECKERS_EDGE_PENALTY

#define CHECKERS_EDGE_PENALTY   ((int32_t)10)

Definition at line 17 of file constants.h.

◆ CHECKERS_HARD_SCORE_JITTER

#define CHECKERS_HARD_SCORE_JITTER   ((int32_t)10)

Definition at line 31 of file constants.h.

◆ CHECKERS_KING_VALUE

#define CHECKERS_KING_VALUE   ((int32_t)200)

Definition at line 16 of file constants.h.

◆ CHECKERS_LAST_COORDINATE

#define CHECKERS_LAST_COORDINATE   ((int32_t)7)

Definition at line 13 of file constants.h.

◆ CHECKERS_MAN_VALUE

#define CHECKERS_MAN_VALUE   ((int32_t)100)

Definition at line 15 of file constants.h.

◆ CHECKERS_MAX_SEARCH_DEPTH

#define CHECKERS_MAX_SEARCH_DEPTH   ((int32_t)10)

Definition at line 50 of file constants.h.

◆ CHECKERS_NAV_CURRENT_TARGET

#define CHECKERS_NAV_CURRENT_TARGET   ((int32_t)0xb245)

Definition at line 47 of file constants.h.

◆ CHECKERS_NORMAL_SCORE_JITTER

#define CHECKERS_NORMAL_SCORE_JITTER   ((int32_t)50)

Definition at line 30 of file constants.h.

◆ CHECKERS_PLAYER1_BIT

#define CHECKERS_PLAYER1_BIT   ((int32_t)(1u << 0))

Definition at line 8 of file constants.h.

◆ CHECKERS_PLAYER2_BIT

#define CHECKERS_PLAYER2_BIT   ((int32_t)(1u << 1))

Definition at line 9 of file constants.h.

◆ CHECKERS_PLAYER_MASK

#define CHECKERS_PLAYER_MASK   (CHECKERS_PLAYER1_BIT | CHECKERS_PLAYER2_BIT)

Definition at line 10 of file constants.h.

◆ CHECKERS_RENDER_NODE_MASK

#define CHECKERS_RENDER_NODE_MASK   ((int32_t)63)

Definition at line 18 of file constants.h.

◆ CHECKERS_SEARCH_MIN_SCORE

#define CHECKERS_SEARCH_MIN_SCORE   ((uint32_t)0x80000001)

Definition at line 49 of file constants.h.

◆ CHECKERS_SIMPLE_STEP_DELTA

#define CHECKERS_SIMPLE_STEP_DELTA   ((uint32_t)2)

Definition at line 27 of file constants.h.

◆ CHECKERS_TRACE_UNBOUNDED

#define CHECKERS_TRACE_UNBOUNDED   ((int32_t)0x7fffffff)

Definition at line 48 of file constants.h.

Enumeration Type Documentation

◆ Checkers_Difficulty

Enumerator
CHECKERS_DIFFICULTY_EASY 
CHECKERS_DIFFICULTY_NORMAL 
CHECKERS_DIFFICULTY_HARD 

Definition at line 20 of file constants.h.

◆ Checkers_NavigationCommand

Enumerator
CHECKERS_NAV_SOURCE_CELL 
CHECKERS_NAV_DESTINATION_CELL 
CHECKERS_NAV_SELECTABLE_CELL 

Definition at line 33 of file constants.h.

◆ Checkers_PathQuery

enum Checkers_PathQuery : uint32_t
Enumerator
CHECKERS_PATH_SOURCE 
CHECKERS_PATH_DESTINATION 
CHECKERS_PATH_CURRENT 

Definition at line 40 of file constants.h.