mirror of
https://github.com/ncblakely/GiantsTools
synced 2024-11-05 14:55:38 +01:00
32 lines
539 B
C
32 lines
539 B
C
|
#pragma once
|
||
|
|
||
|
namespace AI
|
||
|
{
|
||
|
enum class CommandType
|
||
|
{
|
||
|
Move = 0,
|
||
|
FireWeapon,
|
||
|
|
||
|
NumTypes
|
||
|
};
|
||
|
|
||
|
struct Command
|
||
|
{
|
||
|
virtual~ Command() { }
|
||
|
|
||
|
CommandType Type{};
|
||
|
};
|
||
|
|
||
|
struct MoveCommand : Command
|
||
|
{
|
||
|
SBYTE Turn{}; // Positive is left (counterclockwise)
|
||
|
SBYTE LookUpDown{};
|
||
|
SBYTE Run{}; // Positive is forward
|
||
|
SBYTE Side{}; // Positive is left
|
||
|
SBYTE Thrust{};
|
||
|
DWORD Flags{};
|
||
|
float TurnGoal{};
|
||
|
P3D MoveGoal{};
|
||
|
};
|
||
|
}
|