C# Class SmartboyDevelopments.Haxxit.Programs.Program

显示文件 Open project: smartboyathome/Haxxit

Public Methods

Method Description
AlreadyRanCommand ( ) : bool
CanAttack ( Map map, System.Point attacked_point, string command_name ) : bool
GetAllCommands ( ) : List
GetCommand ( string command_name ) : Command
HasCommand ( string command_name ) : bool
Program ( ushort moves, ushort size, string TypeName, IEnumerable commands ) : System
Reset ( ) : void
RunCommand ( Map map, System.Point attacked_point, string command_name ) : UndoCommand
RunUndoCommand ( Map map, UndoCommand command ) : bool

Method Details

AlreadyRanCommand() public method

public AlreadyRanCommand ( ) : bool
return bool

CanAttack() public method

public CanAttack ( Map map, System.Point attacked_point, string command_name ) : bool
map SmartboyDevelopments.Haxxit.Maps.Map
attacked_point System.Point
command_name string
return bool

GetAllCommands() public method

public GetAllCommands ( ) : List
return List

GetCommand() public method

public GetCommand ( string command_name ) : Command
command_name string
return Command

HasCommand() public method

public HasCommand ( string command_name ) : bool
command_name string
return bool

Program() public method

public Program ( ushort moves, ushort size, string TypeName, IEnumerable commands ) : System
moves ushort
size ushort
TypeName string
commands IEnumerable
return System

Reset() public method

public Reset ( ) : void
return void

RunCommand() public method

public RunCommand ( Map map, System.Point attacked_point, string command_name ) : UndoCommand
map SmartboyDevelopments.Haxxit.Maps.Map
attacked_point System.Point
command_name string
return SmartboyDevelopments.Haxxit.Commands.UndoCommand

RunUndoCommand() public method

public RunUndoCommand ( Map map, UndoCommand command ) : bool
map SmartboyDevelopments.Haxxit.Maps.Map
command SmartboyDevelopments.Haxxit.Commands.UndoCommand
return bool