C# Class Artemis.Engine.Input.ControlIntent

Represents the intent of a controller input in a ControlScheme. This class uses the Flyweight pattern. You create instances by calling ControlIntent.GetIntent(name). If an intent instance already exists with the given name, it is returned, otherwise a new one is created and returned.
Show file Open project: ArtemisEngine/Artemis-Engine Class Usage Examples

Public Properties

Property Type Description
Duck ControlIntent
Exit ControlIntent
Jump ControlIntent
MoveDown ControlIntent
MoveLeft ControlIntent
MoveRight ControlIntent
MoveUp ControlIntent
Name string

Public Methods

Method Description
GetIntent ( string name ) : ControlIntent

Get the intent with the given name if it exists, otherwise create it and return it.

Private Methods

Method Description
ControlIntent ( ) : System.Collections.Generic
ControlIntent ( string name ) : System.Collections.Generic

Method Details

GetIntent() public static method

Get the intent with the given name if it exists, otherwise create it and return it.
public static GetIntent ( string name ) : ControlIntent
name string
return ControlIntent

Property Details

Duck public static property

public static ControlIntent,Artemis.Engine.Input Duck
return ControlIntent

Exit public static property

public static ControlIntent,Artemis.Engine.Input Exit
return ControlIntent

Jump public static property

public static ControlIntent,Artemis.Engine.Input Jump
return ControlIntent

MoveDown public static property

public static ControlIntent,Artemis.Engine.Input MoveDown
return ControlIntent

MoveLeft public static property

public static ControlIntent,Artemis.Engine.Input MoveLeft
return ControlIntent

MoveRight public static property

public static ControlIntent,Artemis.Engine.Input MoveRight
return ControlIntent

MoveUp public static property

public static ControlIntent,Artemis.Engine.Input MoveUp
return ControlIntent

Name public property

The name of this intent.
public string Name
return string