Controller - ActionBuffer

Page / - last modified by GiorgioGhisotti on 2025/01/30 12:19

ActionBuffer

last modified by GiorgioGhisotti

on 2025/01/30 12:19

Table of Contents

Inputs/outputs

Name	Type	Range	Description
aiActionBuffer	int[ACTION_BUFFER_SIZE][3]	[[ INVALID, MAXINT ], [INVALID, NUM_TRAINS - 1], [INVALID, NUM_TRACKS - 1]]	INVALID terminated buffer containing unique actions received from the GUI. On overflow the buffer will be cleared and new actions will be added as normal from the beginning. The format of an action is [id, train id, destination]. An action with an INVALID id should be considered INVALID.