C# 클래스 EtherDuels.Config.Configuration

상속: ConfigurationRetriever, ISerializable
파일 보기 프로젝트 열기: julius/pse_spacewar 1 사용 예제들

공개 메소드들

메소드 설명
Configuration ( ) : System

Constructor which initializes the KeyboardConfiguration Array. Currently, fixed sized of 10 players.

Configuration ( SerializationInfo info, StreamingContext ctxt ) : System

Creates a new Configuration.

Equals ( Configuration secConf ) : bool

Checks if the assigned Configuration object is equal to this one. Objects are defined equal if all the respective settings match with each other.

GetKeyboardConfiguration ( int playerID ) : KeyboardConfiguration

Returns the KeyboardConfiguration of the specified player.

GetObjectData ( SerializationInfo info, StreamingContext ctxt ) : void

Adds all important values to the SerializationInfo.

Save ( ) : void

Saves the current Configuration to a file.

SetBackwardKey ( int playerID, Keys key ) : void

Sets the backward key for the player specified by the playerID.

SetFireKey ( int playerID, Keys key ) : void

Sets the fire key for the player specified by the playerID.

SetForwardKey ( int playerID, Keys key ) : void

Sets the forward key for the player specified by the playerID.

SetKeyboardConfiguration ( int playerID, KeyboardConfiguration keyConfiguration ) : void

Sets the KeyboardConfiguration for the specified player.

SetLeftKey ( int playerID, Keys key ) : void

Sets the turn-left key for the player specified by the playerID.

SetNextWeaponKey ( int playerID, Keys key ) : void

Sets the next-weapon key for the player specified by the playerID.

SetPrevWeaponKey ( int playerID, Keys key ) : void

Sets the prev-weapon key for the player specified by the playerID.

SetRightKey ( int playerID, Keys key ) : void

Sets the turn-right key for the player specified by the playerID.

메소드 상세

Configuration() 공개 메소드

Constructor which initializes the KeyboardConfiguration Array. Currently, fixed sized of 10 players.
public Configuration ( ) : System
리턴 System

Configuration() 공개 메소드

Creates a new Configuration.
public Configuration ( SerializationInfo info, StreamingContext ctxt ) : System
info System.Runtime.Serialization.SerializationInfo Info on how to serialize this class.
ctxt System.Runtime.Serialization.StreamingContext The assigned StreamingContext.
리턴 System

Equals() 공개 메소드

Checks if the assigned Configuration object is equal to this one. Objects are defined equal if all the respective settings match with each other.
public Equals ( Configuration secConf ) : bool
secConf Configuration
리턴 bool

GetKeyboardConfiguration() 공개 메소드

Returns the KeyboardConfiguration of the specified player.
public GetKeyboardConfiguration ( int playerID ) : KeyboardConfiguration
playerID int The ID which specifies the player.
리턴 KeyboardConfiguration

GetObjectData() 공개 메소드

Adds all important values to the SerializationInfo.
public GetObjectData ( SerializationInfo info, StreamingContext ctxt ) : void
info System.Runtime.Serialization.SerializationInfo The assigned SerializationInfo.
ctxt System.Runtime.Serialization.StreamingContext The assigned StreamingContext.
리턴 void

Save() 공개 메소드

Saves the current Configuration to a file.
public Save ( ) : void
리턴 void

SetBackwardKey() 공개 메소드

Sets the backward key for the player specified by the playerID.
public SetBackwardKey ( int playerID, Keys key ) : void
playerID int The ID which specifies the player.
key Keys The new key which needs to be assigned.
리턴 void

SetFireKey() 공개 메소드

Sets the fire key for the player specified by the playerID.
public SetFireKey ( int playerID, Keys key ) : void
playerID int The ID which specifies the player.
key Keys The new key which needs to be assigned.
리턴 void

SetForwardKey() 공개 메소드

Sets the forward key for the player specified by the playerID.
public SetForwardKey ( int playerID, Keys key ) : void
playerID int The ID which specifies the player.
key Keys The new key which needs to be assigned.
리턴 void

SetKeyboardConfiguration() 공개 메소드

Sets the KeyboardConfiguration for the specified player.
public SetKeyboardConfiguration ( int playerID, KeyboardConfiguration keyConfiguration ) : void
playerID int The ID which specifies the player.
keyConfiguration KeyboardConfiguration The KeyboardConfiguration of the specified player.
리턴 void

SetLeftKey() 공개 메소드

Sets the turn-left key for the player specified by the playerID.
public SetLeftKey ( int playerID, Keys key ) : void
playerID int The ID which specifies the player.
key Keys The new key which needs to be assigned.
리턴 void

SetNextWeaponKey() 공개 메소드

Sets the next-weapon key for the player specified by the playerID.
public SetNextWeaponKey ( int playerID, Keys key ) : void
playerID int The ID which specifies the player.
key Keys The new key which needs to be assigned.
리턴 void

SetPrevWeaponKey() 공개 메소드

Sets the prev-weapon key for the player specified by the playerID.
public SetPrevWeaponKey ( int playerID, Keys key ) : void
playerID int The ID which specifies the player.
key Keys The new key which needs to be assigned.
리턴 void

SetRightKey() 공개 메소드

Sets the turn-right key for the player specified by the playerID.
public SetRightKey ( int playerID, Keys key ) : void
playerID int The ID which specifies the player.
key Keys The new key which needs to be assigned.
리턴 void