00001
00002
00003
00004
00005
00006
00007
00008
00009
00011
00012
00013
00014
00015
00016
00017
00018
00019
00020
00021
00022
00023
00024
00025
00026
00027
00028 #ifndef __COMMANDS_H__
00029 #define __COMMANDS_H__
00030
00032
00033 #include "unit.h"
00034
00035
00036
00037
00038
00039 class CUnitType;
00040
00041
00042
00043
00044
00045
00046
00047
00048
00049
00050
00052 extern void SendCommandStopUnit(CUnit *unit);
00054 extern void SendCommandStandGround(CUnit *unit, int flush);
00056 extern void SendCommandFollow(CUnit *unit, CUnit *dest,
00057 int flush);
00059 extern void SendCommandMove(CUnit *unit, int x, int y, int flush);
00061 extern void SendCommandRepair(CUnit *unit, int x, int y,
00062 CUnit *dest, int flush);
00064 extern void SendCommandAutoRepair(CUnit *unit, int on);
00066 extern void SendCommandAttack(CUnit *unit, int x, int y,
00067 CUnit *dest, int flush);
00069 extern void SendCommandAttackGround(CUnit *unit, int x, int y,
00070 int flush);
00072 extern void SendCommandPatrol(CUnit *unit, int x, int y, int flush);
00074 extern void SendCommandBoard(CUnit *unit, int x, int y,
00075 CUnit *dest, int flush);
00077 extern void SendCommandUnload(CUnit *unit, int x, int y,
00078 CUnit *what, int flush);
00080 extern void SendCommandBuildBuilding(CUnit *unit, int x, int y,
00081 CUnitType *what, int flush);
00083 extern void SendCommandDismiss(CUnit *unit);
00085 extern void SendCommandResource(CUnit *unit, CUnit *dest,
00086 int flush);
00088 extern void SendCommandTrainUnit(CUnit *unit,
00089 CUnitType *what, int flush);
00091 extern void SendCommandCancelTraining(CUnit *unit, int slot,
00092 const CUnitType *type);
00094 extern void SendCommandSpellCast(CUnit *unit, int x, int y,
00095 CUnit *dest, int spellid, int flush);
00097 extern void SendCommandAutoSpellCast(CUnit *unit, int spellid,
00098 int on);
00100 extern void SendCommandDiplomacy(int player, int state, int opponent);
00102 extern void SendCommandSharedVision(int player, bool state, int opponent);
00103
00105 extern void ParseCommand(unsigned char type, UnitRef unum, unsigned short x,
00106 unsigned short y, UnitRef dest);
00108 extern void ParseExtendedCommand(unsigned char type, int status,
00109 unsigned char arg1, unsigned short arg2, unsigned short arg3,
00110 unsigned short arg4);
00111
00113
00114 #endif // !__COMMANDS_H__