Skip to content

Instantly share code, notes, and snippets.

@lukaspj
Created February 15, 2017 17:48
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save lukaspj/2576adcf2039fa7607645f098c45404e to your computer and use it in GitHub Desktop.
Save lukaspj/2576adcf2039fa7607645f098c45404e to your computer and use it in GitHub Desktop.
namespace Torque3D.Engine.Util.Enums
{
public enum PlayerAction
{
/// <summary>
/// Take no action, you damned camper.
/// </summary>
None,
/// <summary>
/// Strafe left.
/// </summary>
MoveLeft,
/// <summary>
/// Strafe right.
/// </summary>
MoveRight,
/// <summary>
/// Move the character forwards.
/// </summary>
MoveForward,
/// <summary>
/// Move the character backwards.
/// </summary>
MoveBackward,
/// <summary>
/// Turns right at a rate of 2 degrees per tick. This will increase the rotation value.
/// </summary>
TurnRight,
/// <summary>
/// Turns left at a rate of 2 degrees per tick. This will decrease the rotation value.
/// </summary>
TurnLeft,
/// <summary>
/// Shoot once, with a probability of missing. If the shoot delay is "active" (i.e. not at 0) then this action will fail.
/// </summary>
Shoot,
/// <summary>
/// Save one action for next round.
/// </summary>
Prepare
};
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment