Click or drag to resize
IPlayer Interface
Defines a common interface by which a sprite can receive input from a player or some object simulating a player.

Namespace: (Default Namespace)
Assembly: Default (in Default.exe) Version: 1.0.0.0
Syntax
C#
public interface IPlayer

The IPlayer type exposes the following members.

Properties
  NameDescription
Public propertyButton1
Returns true when the player is pressing button 1, or false otherwise.
Public propertyButton2
Returns true when the player is pressing button 2, or false otherwise.
Public propertyButton3
Returns true when the player is pressing button 3, or false otherwise.
Public propertyButton4
Returns true when the player is pressing button 4, or false otherwise.
Public propertyDown
Returns true when the player is pressing down, or false otherwise.
Public propertyLeft
Returns true when the player is pressing left, or false otherwise.
Public propertyRight
Returns true when the player is pressing right, or false otherwise.
Public propertyUp
Returns true when the player is pressing up, or false otherwise.
Top
See Also