2024-10-16 08:38:41 +02:00
|
|
|
#ifndef _MAGIC__SIM__SIM_H
|
|
|
|
|
#define _MAGIC__SIM__SIM_H
|
2017-04-25 14:41:48 +02:00
|
|
|
|
|
|
|
|
#include "utils/magic.h"
|
2025-01-31 20:39:09 +01:00
|
|
|
#include "textio/txcommands.h" /* TxCommand */
|
|
|
|
|
#include "windows/windows.h" /* MagWindow */
|
2017-04-25 14:41:48 +02:00
|
|
|
|
2025-01-31 20:43:08 +01:00
|
|
|
extern const char *SimGetNodeCommand(const char *cmd);
|
|
|
|
|
extern char *SimGetNodeName(SearchContext *sx, Tile *tp, const char *path);
|
2025-01-31 20:39:09 +01:00
|
|
|
extern char *SimSelectNode(SearchContext *scx, TileType type, int xMask, char *buffer);
|
|
|
|
|
extern bool SimGetReplyLine(char **replyLine);
|
2025-01-31 20:43:08 +01:00
|
|
|
extern void SimRsimIt(const char *cmd, const char *nodeName);
|
2025-01-31 20:39:09 +01:00
|
|
|
extern void SimEraseLabels(void);
|
2025-01-31 20:43:08 +01:00
|
|
|
extern bool efPreferredName(const char *name1, const char *name2);
|
2025-01-31 20:39:09 +01:00
|
|
|
extern void SimRsimHandler(MagWindow *w, TxCommand *cmd);
|
|
|
|
|
extern void SimInit(void);
|
2017-04-25 14:41:48 +02:00
|
|
|
|
|
|
|
|
extern bool SimRecomputeSel;
|
|
|
|
|
extern bool SimInitGetnode;
|
|
|
|
|
extern bool SimGetnodeAlias;
|
|
|
|
|
extern bool SimSawAbortString;
|
|
|
|
|
extern bool SimRsimRunning;
|
|
|
|
|
extern bool SimIsGetnode;
|
|
|
|
|
extern bool SimHasCoords;
|
|
|
|
|
extern bool SimUseCoords;
|
|
|
|
|
extern bool SimIgnoreGlobals;
|
|
|
|
|
|
|
|
|
|
extern HashTable SimNodeNameTbl;
|
|
|
|
|
extern HashTable SimGNAliasTbl;
|
|
|
|
|
extern HashTable SimGetnodeTbl;
|
|
|
|
|
extern HashTable SimAbortSeenTbl;
|
|
|
|
|
|
2022-10-10 11:50:15 +02:00
|
|
|
/* C99 compat */
|
2025-01-31 20:39:09 +01:00
|
|
|
extern void SimGetnode(void);
|
|
|
|
|
extern void SimGetsnode(void);
|
|
|
|
|
extern void SimGetNodeCleanUp(void);
|
2025-01-31 20:43:08 +01:00
|
|
|
extern int SimPutLabel(CellDef *cellDef, const Rect *rect, int align, const char *text, TileType type);
|
|
|
|
|
extern int SimSrConnect(CellDef *def, const Rect *startArea, const TileTypeBitMask *mask, const TileTypeBitMask *connect,
|
|
|
|
|
const Rect *bounds, int (*func)(), ClientData clientData);
|
|
|
|
|
extern void SimTreeCopyConnect(SearchContext *scx, const TileTypeBitMask *mask, int xMask, const TileTypeBitMask *connect,
|
|
|
|
|
const Rect *area, CellUse *destUse, char *Node_Name);
|
|
|
|
|
extern int SimTreeSrNMTiles(SearchContext *scx, TileType dinfo, const TileTypeBitMask *mask, int xMask, TerminalPath *tpath,
|
2025-01-31 20:39:09 +01:00
|
|
|
int (*func)(), ClientData cdarg);
|
2025-01-31 20:43:08 +01:00
|
|
|
extern int SimTreeSrTiles(SearchContext *scx, const TileTypeBitMask *mask, int xMask, TerminalPath *tpath,
|
2025-01-31 20:39:09 +01:00
|
|
|
int (*func)(), ClientData cdarg);
|
|
|
|
|
extern bool SimStartRsim(char *argv[]);
|
|
|
|
|
extern void SimConnectRsim(bool escRsim);
|
2025-01-31 20:43:08 +01:00
|
|
|
extern bool SimSelection(const char *cmd);
|
2025-01-31 20:39:09 +01:00
|
|
|
extern void SimRsimMouse(MagWindow *w);
|
|
|
|
|
extern int SimFillBuffer(char *buffHead, char **pLastChar, int *charCount);
|
2022-10-10 11:50:15 +02:00
|
|
|
|
2024-10-16 08:38:41 +02:00
|
|
|
#endif /* _MAGIC__SIM__SIM_H */
|