Merge pull request #425 from Cuyler36:m_train_control

Link m_train_control, match one func in m_board_ovl
This commit is contained in:
Cuyler36
2024-09-04 18:25:13 -04:00
committed by GitHub
5 changed files with 409 additions and 435 deletions
+12 -12
View File
@@ -2,7 +2,7 @@
#define M_TRAIN_CONTROL_H
#include "types.h"
#include "m_play_h.h"
#include "game_h.h"
#ifdef __cplusplus
extern "C" {
@@ -12,21 +12,21 @@ extern "C" {
#define mTRC_FAST_SPEED 6.0f // speed when farther away from station
enum {
mTRC_ACTION_NONE,
mTRC_ACTION_SPAWN_MOVING,
mTRC_ACTION_BEGIN_SLOWDOWN,
mTRC_ACTION_BEGIN_STOP,
mTRC_ACTION_SIGNAL_STOPPED,
mTRC_ACTION_WAIT_STOPPED,
mTRC_ACTION_SIGNAL_STARTING,
mTRC_ACTION_BEGIN_PULL_OUT,
mTRC_ACTION_SPEED_UP,
mTRC_ACTION_NONE,
mTRC_ACTION_SPAWN_MOVING,
mTRC_ACTION_BEGIN_SLOWDOWN,
mTRC_ACTION_BEGIN_STOP,
mTRC_ACTION_SIGNAL_STOPPED,
mTRC_ACTION_WAIT_STOPPED,
mTRC_ACTION_SIGNAL_STARTING,
mTRC_ACTION_BEGIN_PULL_OUT,
mTRC_ACTION_SPEED_UP,
mTRC_ACTION_NUM
mTRC_ACTION_NUM
};
extern void mTRC_init(GAME* game);
extern void mTRC_move(GAME_PLAY* play);
extern void mTRC_move(GAME* game);
#ifdef __cplusplus
}