1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135
|
#ifndef LUA_UNSYNCED_CTRL_H
#define LUA_UNSYNCED_CTRL_H
// LuaUnsyncedCtrl.h: interface for the LuaUnsyncedCtrl class.
//
//////////////////////////////////////////////////////////////////////
#include "Sim/Units/UnitSet.h"
struct lua_State;
// MinGW defines this for a WINAPI function
#undef SendMessage
class LuaUnsyncedCtrl {
public:
static bool PushEntries(lua_State* L);
static void DrawUnitCommandQueues();
static void ClearUnitCommandQueues();
static CUnitSet drawCmdQueueUnits;
private:
private:
static int Echo(lua_State* L);
static int SendMessage(lua_State* L);
static int SendMessageToPlayer(lua_State* L);
static int SendMessageToTeam(lua_State* L);
static int SendMessageToAllyTeam(lua_State* L);
static int SendMessageToSpectators(lua_State* L);
static int LoadSoundDef(lua_State* L);
static int PlaySoundFile(lua_State* L);
static int PlaySoundStream(lua_State* L);
static int StopSoundStream(lua_State* L);
static int PauseSoundStream(lua_State* L);
static int SetSoundStreamVolume(lua_State* L);
static int SetCameraState(lua_State* L);
static int SetCameraTarget(lua_State* L);
static int SelectUnitMap(lua_State* L);
static int SelectUnitArray(lua_State* L);
static int AddWorldIcon(lua_State* L);
static int AddWorldText(lua_State* L);
static int AddWorldUnit(lua_State* L);
static int DrawUnitCommands(lua_State* L);
static int SetTeamColor(lua_State* L);
static int AssignMouseCursor(lua_State* L);
static int ReplaceMouseCursor(lua_State* L);
static int SetCustomCommandDrawData(lua_State* L);
static int SetDrawSky(lua_State* L);
static int SetDrawWater(lua_State* L);
static int SetDrawGround(lua_State* L);
static int SetWaterParams(lua_State* L);
static int SetUnitNoDraw(lua_State* L);
static int SetUnitNoMinimap(lua_State* L);
static int SetUnitNoSelect(lua_State* L);
static int AddUnitIcon(lua_State* L);
static int FreeUnitIcon(lua_State* L);
static int ExtractModArchiveFile(lua_State* L);
// moved from LuaUI
//FIXME static int SetShockFrontFactors(lua_State* L);
static int GetConfigInt(lua_State* L);
static int SetConfigInt(lua_State* L);
static int GetConfigString(lua_State* L);
static int SetConfigString(lua_State* L);
static int CreateDir(lua_State* L);
static int MakeFont(lua_State* L);
static int Restart(lua_State* L);
static int SetUnitDefIcon(lua_State* L);
static int SetUnitDefImage(lua_State* L);
static int SetActiveCommand(lua_State* L);
static int ForceLayoutUpdate(lua_State* L);
static int SetLosViewColors(lua_State* L);
static int WarpMouse(lua_State* L);
static int SetMouseCursor(lua_State* L);
static int SetCameraOffset(lua_State* L);
static int SendCommands(lua_State* L);
static int SetShareLevel(lua_State* L);
static int ShareResources(lua_State* L);
static int SetUnitGroup(lua_State* L);
static int GiveOrder(lua_State* L);
static int GiveOrderToUnit(lua_State* L);
static int GiveOrderToUnitMap(lua_State* L);
static int GiveOrderToUnitArray(lua_State* L);
static int GiveOrderArrayToUnitMap(lua_State* L);
static int GiveOrderArrayToUnitArray(lua_State* L);
static int SendLuaUIMsg(lua_State* L);
static int SendLuaGaiaMsg(lua_State* L);
static int SendLuaRulesMsg(lua_State* L);
static int SetLastMessagePosition(lua_State* L);
static int MarkerAddPoint(lua_State* L);
static int MarkerAddLine(lua_State* L);
static int MarkerErasePosition(lua_State* L);
static int SetDrawSelectionInfo(lua_State* L);
static int SetBuildSpacing(lua_State* L);
static int SetBuildFacing(lua_State* L);
};
#endif /* LUA_UNSYNCED_CTRL_H */
|