_________ __ __
/ _____// |_____________ _/ |______ ____ __ __ ______
\_____ \\ __\_ __ \__ \\ __\__ \ / ___\| | \/ ___/
/ \| | | | \// __ \| | / __ \_/ /_/ > | /\___ \
/_______ /|__| |__| (____ /__| (____ /\___ /|____//____ >
\/ \/ \//_____/ \/
______________________ ______________________
T H E W A R B E G I N S
Stratagus - A free fantasy real time strategy game engine
Go to the documentation of this file.
30 #ifndef __COMMANDS_H__
31 #define __COMMANDS_H__
190 unsigned short y,
UnitRef dest);
193 unsigned short arg2,
unsigned short arg3,
194 unsigned short arg4);
196 #define FlushCommands 1
200 #endif // !__COMMANDS_H__
void SendCommandStandGround(CUnit &unit, int flush)
Send stand ground command.
Definition: commands.cpp:75
void CommandCancelTraining(CUnit &unit, int slot, const CUnitType *type)
Prepare command cancel training.
Definition: command.cpp:700
void SendCommandAutoRepair(CUnit &unit, int on)
Send auto repair command.
Definition: commands.cpp:160
void CommandStopUnit(CUnit &unit)
Prepare command stop.
Definition: command.cpp:166
void CommandCancelResearch(CUnit &unit)
Prepare command cancel research.
Definition: command.cpp:830
void CommandMove(CUnit &unit, const Vec2i &pos, int flush)
Prepare command move.
Definition: command.cpp:262
void SendCommandDiplomacy(int player, int state, int opponent)
Send diplomacy command.
Definition: commands.cpp:506
void SendCommandUpgradeTo(CUnit &unit, CUnitType &what, int flush)
Send upgrade to command.
Definition: commands.cpp:401
void SendCommandTrainUnit(CUnit &unit, CUnitType &what, int flush)
Send train command.
Definition: commands.cpp:365
void CommandUnload(CUnit &unit, const Vec2i &pos, CUnit *what, int flush)
Prepare command unload.
Definition: command.cpp:476
void CommandFollow(CUnit &unit, CUnit &dest, int flush)
Prepare command follow.
Definition: command.cpp:235
void CommandQuit(int player)
Prepare command quit.
Definition: command.cpp:970
void SendCommandUnload(CUnit &unit, const Vec2i &pos, CUnit *what, int flush)
Send unload command.
Definition: commands.cpp:247
void SendCommandExplore(CUnit &unit, int flush)
Send explore command.
Definition: commands.cpp:281
void SendCommandFollow(CUnit &unit, CUnit &dest, int flush)
Send follow command.
Definition: commands.cpp:109
void SendCommandBuildBuilding(CUnit &unit, const Vec2i &pos, CUnitType &what, int flush)
Send build building command.
Definition: commands.cpp:265
void SendCommandDefend(CUnit &unit, CUnit &dest, int flush)
Send defend command.
Definition: commands.cpp:92
void CommandTrainUnit(CUnit &unit, CUnitType &what, int flush)
Prepare command train.
Definition: command.cpp:666
Definition: unittype.h:508
void CommandAttack(CUnit &unit, const Vec2i &pos, CUnit *dest, int flush)
Prepare command attack.
Definition: command.cpp:338
void SendCommandCancelTraining(CUnit &unit, int slot, const CUnitType *type)
Send cancel training command.
Definition: commands.cpp:382
void CommandResearch(CUnit &unit, CUpgrade &what, int flush)
Prepare command research.
Definition: command.cpp:808
void CommandBuildBuilding(CUnit &unit, const Vec2i &pos, CUnitType &, int flush)
Prepare command build.
Definition: command.cpp:498
Definition: upgrade_structs.h:154
void SendCommandStopUnit(CUnit &unit)
Send stop command.
Definition: commands.cpp:59
void CommandDismiss(CUnit &unit)
Prepare command dismiss.
Definition: command.cpp:550
void SendCommandSpellCast(CUnit &unit, const Vec2i &pos, CUnit *dest, int spellid, int flush)
Send spell cast command.
Definition: commands.cpp:470
void SendCommandRepair(CUnit &unit, const Vec2i &pos, CUnit *dest, int flush)
Send repair command.
Definition: commands.cpp:144
void CommandCancelUpgradeTo(CUnit &unit)
Prepare command cancel upgrade to.
Definition: command.cpp:788
void ExecExtendedCommand(unsigned char type, int status, unsigned char arg1, unsigned short arg2, unsigned short arg3, unsigned short arg4)
Execute an extended command (from network).
Definition: commands.cpp:785
void CommandResourceLoc(CUnit &unit, const Vec2i &pos, int flush)
Prepare command resource location.
Definition: command.cpp:569
void CommandPatrolUnit(CUnit &unit, const Vec2i &pos, int flush)
Prepare command patrol.
Definition: command.cpp:402
void SendCommandDismiss(CUnit &unit)
Send cancel building command.
Definition: commands.cpp:296
void SendCommandCancelResearch(CUnit &unit)
Send cancel research command.
Definition: commands.cpp:450
void SendCommandAttackGround(CUnit &unit, const Vec2i &pos, int flush)
Send attack ground command.
Definition: commands.cpp:195
void ExecCommand(unsigned char type, UnitRef unum, unsigned short x, unsigned short y, UnitRef dest)
Execute a command (from network).
Definition: commands.cpp:576
void SendCommandCancelUpgradeTo(CUnit &unit)
Send cancel upgrade to command.
Definition: commands.cpp:416
void CommandStandGround(CUnit &unit, int flush)
Prepare command stand ground.
Definition: command.cpp:184
void SendCommandPatrol(CUnit &unit, const Vec2i &pos, int flush)
Send patrol command.
Definition: commands.cpp:212
void CommandResource(CUnit &unit, CUnit &dest, int flush)
Prepare command resource.
Definition: command.cpp:600
void SendCommandAttack(CUnit &unit, const Vec2i &pos, CUnit *dest, int flush)
Send attack command.
Definition: commands.cpp:178
void CommandSharedVision(int player, bool state, int opponent)
Prepare shared vision command.
Definition: command.cpp:919
void SendCommandSharedVision(int player, bool state, int opponent)
Send shared vision command.
Definition: commands.cpp:541
void SendCommandResource(CUnit &unit, CUnit &dest, int flush)
Send harvest command.
Definition: commands.cpp:331
void SendCommandResourceLoc(CUnit &unit, const Vec2i &pos, int flush)
Send harvest location command.
Definition: commands.cpp:314
void SendCommandAutoSpellCast(CUnit &unit, int spellid, int on)
Send auto spell cast command.
Definition: commands.cpp:488
void SendCommandReturnGoods(CUnit &unit, CUnit *dest, int flush)
Send return goods command.
Definition: commands.cpp:348
void CommandDiplomacy(int player, int state, int opponent)
Prepare diplomacy command.
Definition: command.cpp:894
void SendCommandBoard(CUnit &unit, CUnit &dest, int flush)
Send board command.
Definition: commands.cpp:229
void CommandBoard(CUnit &unit, CUnit &dest, int flush)
Prepare command board.
Definition: command.cpp:445
void SendCommandMove(CUnit &unit, const Vec2i &pos, int flush)
Send move command.
Definition: commands.cpp:126
void CommandAutoRepair(CUnit &unit, int on)
Send auto repair command.
Definition: command.cpp:322
void CommandAttackGround(CUnit &unit, const Vec2i &pos, int flush)
Prepare command attack ground.
Definition: command.cpp:371
void CommandUpgradeTo(CUnit &unit, CUnitType &what, int flush, bool instant=false)
Prepare command upgrade to.
Definition: command.cpp:747
unsigned short UnitRef
Definition: commands.h:129
void SendCommandResearch(CUnit &unit, CUpgrade &what, int flush)
Send research command.
Definition: commands.cpp:434
void CommandDefend(CUnit &unit, CUnit &dest, int flush)
Prepare command defend.
Definition: command.cpp:208
void CommandAutoSpellCast(CUnit &unit, int spellid, int on)
Prepare command auto spellcast.
Definition: command.cpp:879
void CommandReturnGoods(CUnit &unit, CUnit *depot, int flush)
Prepare command return.
Definition: command.cpp:634
void CommandExplore(CUnit &unit, int flush)
Prepare command explore.
Definition: command.cpp:524
void CommandRepair(CUnit &unit, const Vec2i &pos, CUnit *dest, int flush)
Prepare command repair.
Definition: command.cpp:292
The big unit structure.
Definition: unit.h:135
void CommandTransformIntoType(CUnit &unit, CUnitType &type)
immediate transforming into type.
Definition: command.cpp:773
void CommandSpellCast(CUnit &unit, const Vec2i &pos, CUnit *dest, const SpellType &spell, int flush, bool isAutocast=false)
Prepare command spellcast.
Definition: command.cpp:852
(C) Copyright 1998-2012 by The Stratagus Project under the GNU General Public License.
All trademarks and copyrights on this page are owned by their respective owners.