C# 클래스 BalloonsPop.Core.Commands.CommandFactory

Implements a factory to create commands.
상속: ICommandFactory
파일 보기 프로젝트 열기: Baloons-Pop-4/Main 1 사용 예제들

공개 메소드들

메소드 설명
CommandFactory ( ) : System

Initializes a new instance of the CommandFactory class.

ContainsKey ( string commandKey ) : bool

A method to check if the command is already created.

CreateCommand ( string commandName ) : ICommand

A method to create a command.

RegisterCommand ( string commandKey, Func commandProvidingMethod ) : void

A method to register a new command.

UnregisterCommand ( string commandKey ) : void

A method to delete a command.

비공개 메소드들

메소드 설명
RegisterDefaults ( ) : void

A method to register default commands.

메소드 상세

CommandFactory() 공개 메소드

Initializes a new instance of the CommandFactory class.
public CommandFactory ( ) : System
리턴 System

ContainsKey() 공개 메소드

A method to check if the command is already created.
public ContainsKey ( string commandKey ) : bool
commandKey string
리턴 bool

CreateCommand() 공개 메소드

A method to create a command.
public CreateCommand ( string commandName ) : ICommand
commandName string
리턴 ICommand

RegisterCommand() 공개 메소드

A method to register a new command.
public RegisterCommand ( string commandKey, Func commandProvidingMethod ) : void
commandKey string
commandProvidingMethod Func
리턴 void

UnregisterCommand() 공개 메소드

A method to delete a command.
public UnregisterCommand ( string commandKey ) : void
commandKey string
리턴 void