Click or drag to resize
KeyboardPlayer Class
Represents interactions between the game and a player via the keyboard
Inheritance Hierarchy
SystemObject
  (Default Namespace)KeyboardPlayer

Namespace: (Default Namespace)
Assembly: Default (in Default.exe) Version: 1.0.0.0
Syntax
C#
[SerializableAttribute]
public class KeyboardPlayer : IPlayer

The KeyboardPlayer type exposes the following members.

Constructors
  NameDescription
Public methodKeyboardPlayer
Constructs a new player based on one of 4 possible sets of default key mappings
Top
Methods
  NameDescription
Public methodEquals
Determines whether the specified object is equal to the current object.
(Inherited from Object.)
Public methodGetHashCode
Serves as the default hash function.
(Inherited from Object.)
Public methodGetType
Gets the Type of the current instance.
(Inherited from Object.)
Public methodToString
Returns a string that represents the current object.
(Inherited from Object.)
Top
Fields
  NameDescription
Public fieldkey_button1
Specifies which keyboard key maps to button 1.
Public fieldkey_button2
Specifies which keyboard key maps to button 2.
Public fieldkey_button3
Specifies which keyboard key maps to button 3.
Public fieldkey_button4
Specifies which keyboard key maps to button 4.
Public fieldkey_down
Specifies which keyboard key maps to the notion of pressing down.
Public fieldkey_left
Specifies which keyboard key maps to the notion of pressing left.
Public fieldkey_right
Specifies which keyboard key maps to the notion of pressing right.
Public fieldkey_up
Specifies which keyboard key maps to the notion of pressing up.
Top
Properties
  NameDescription
Public propertyButton1
See Button1.
Public propertyButton2
See Button2.
Public propertyButton3
See Button3.
Public propertyButton4
See Button4.
Public propertyDown
See Down.
Public propertyLeft
See Left.
Public propertyRight
See Right.
Public propertyUp
See Up.
Top
See Also