summaryrefslogtreecommitdiff
path: root/app/bin/ctrain.h
diff options
context:
space:
mode:
authorJörg Frings-Fürst <debian@jff-webhosting.net>2024-07-03 10:19:49 +0200
committerJörg Frings-Fürst <debian@jff-webhosting.net>2024-07-03 10:19:49 +0200
commit8dc8048d2cd4996825470bbfcb1e09e2a2630035 (patch)
tree9804282102f8c40d27407b9c94119b35eeb5013c /app/bin/ctrain.h
parentc9d0740841fbe0539e42e66d3865672bfcd3ac02 (diff)
parentb6bd52cd7330a90fc0e44dbe6022551a8dd768a1 (diff)
Merge branch 'feature/upstream' into develop
Diffstat (limited to 'app/bin/ctrain.h')
-rw-r--r--app/bin/ctrain.h32
1 files changed, 25 insertions, 7 deletions
diff --git a/app/bin/ctrain.h b/app/bin/ctrain.h
index f11ba81..0e06332 100644
--- a/app/bin/ctrain.h
+++ b/app/bin/ctrain.h
@@ -17,7 +17,7 @@
*
* You should have received a copy of the GNU General Public License
* along with this program; if not, write to the Free Software
- * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
+ * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
*/
#ifndef HAVE_CTRAIN_H
@@ -28,43 +28,61 @@
extern wIndex_t trainCmdInx;
+extern long trainPause;
+
struct carItem_t;
typedef struct carItem_t carItem_t;
typedef carItem_t * carItem_p;
typedef struct {
- coOrd pos;
- ANGLE_T angle;
- } vector_t;
+ coOrd pos;
+ ANGLE_T angle;
+} vector_t;
extern carItem_p currCarItemPtr;
extern wControl_p newCarControls[2];
void DoCarDlg( void * unused );
BOOL_T CarItemRead( char * );
+void CarItemShelve( carItem_p );
track_p NewCar( wIndex_t, carItem_p, coOrd, ANGLE_T );
+void UncoupleCars( track_p, int );
void CarGetPos( track_p, coOrd *, ANGLE_T * );
void CarSetVisible( track_p );
void CarItemUpdate( carItem_p );
void CarItemLoadList( void * );
char * CarItemDescribe( carItem_p, long, long * );
void CarItemFindCouplerMountPoint( carItem_p, traverseTrack_t, coOrd[2] );
+void CarItemPos( carItem_p, coOrd *);
void CarItemSize( carItem_p, coOrd * );
char * CarItemNumber( carItem_p );
+void CarItemSetNumber( carItem_p, char *);
DIST_T CarItemCoupledLength( carItem_p );
BOOL_T CarItemIsLoco( carItem_p );
BOOL_T CarItemIsLocoMaster( carItem_p );
void CarItemSetLocoMaster( carItem_p, BOOL_T );
void CarItemSetTrack( carItem_p, track_p );
void CarItemPlace( carItem_p, traverseTrack_p, DIST_T * );
-void CarItemDraw( drawCmd_p, carItem_p, wDrawColor, int, BOOL_T, vector_t *, BOOL_T, track_p );
+void CarItemDraw( drawCmd_p, carItem_p, wDrawColor, int, BOOL_T, vector_t *,
+ BOOL_T, track_p );
+
+BOOL_T WriteCars( FILE * );
+void ClearCars( void );
+void CarDlgAddProto( void );
+void CarDlgAddDesc( void );
+void AttachTrains( void );
+
BOOL_T StoreCarItem (carItem_p item, void **data,long *len);
BOOL_T ReplayCarItem(carItem_p item, void *data,long len);
-enum paramFileState GetCarPartCompatibility(int paramFileIndex, SCALEINX_T scaleIndex);
-enum paramFileState GetCarProtoCompatibility(int paramFileIndex, SCALEINX_T scaleIndex);
+enum paramFileState GetCarPartCompatibility(int paramFileIndex,
+ SCALEINX_T scaleIndex);
+enum paramFileState GetCarProtoCompatibility(int paramFileIndex,
+ SCALEINX_T scaleIndex);
int CarAvailableCount( void );
BOOL_T TraverseTrack2( traverseTrack_p, DIST_T );
void FlipTraverseTrack( traverseTrack_p );
void CheckCarTraverse( track_p trk);
+
void DeleteCarProto(int fileIndex);
void DeleteCarPart(int fileIndex);
+void LocoListChangeEntry( track_p, track_p );
#endif // !HAVE_CTRAIN_H