ObjectComponentMove Class
Definition
Section titled “Definition”Moves a IScreenObject with the arrow keys.
public class ObjectComponentMove : KeyboardConsoleComponent, IComponentInheritance object → KeyboardConsoleComponent
Implements IComponent
Constructors
Section titled “Constructors”ObjectComponentMove()
Section titled “ObjectComponentMove()”Creates a new instance of the object with an Amount of 1.
public ObjectComponentMove()Properties
Section titled “Properties”Amount
Section titled “Amount”The amount to move the object by.
public int Amount { get; set; }LeftKey
Section titled “LeftKey”The key to move the object SadRogue.Primitives.Direction.Left by Amount.
public Keys LeftKey { get; set; }RightKey
Section titled “RightKey”The key to move the object SadRogue.Primitives.Direction.Right by Amount.
public Keys RightKey { get; set; }The key to move the object SadRogue.Primitives.Direction.Up by Amount.
public Keys UpKey { get; set; }DownKey
Section titled “DownKey”The key to move the object SadRogue.Primitives.Direction.Down by Amount.
public Keys DownKey { get; set; }Methods
Section titled “Methods”ProcessKeyboard(IScreenObject, Keyboard, out bool)
Section titled “ProcessKeyboard(IScreenObject, Keyboard, out bool)”Moves the host by Amount when the appropriate key is pressed.
public override void ProcessKeyboard(IScreenObject host, Keyboard keyboard, out bool handled)Parameters
Section titled “Parameters”host IScreenObject
keyboard Keyboard
handled bool