C# Class WebGame.GameController

Inheritance: BaseController
Datei anzeigen Open project: AdmiralPotato/ggj2013

Private Properties

Property Type Description
AddErrorMessage void
Create System.Web.Mvc.ActionResult
Initalize void
LoadMessages void
Send string

Public Methods

Method Description
BuildBase ( int id ) : System.Web.Mvc.ActionResult
BuildShip ( int id ) : System.Web.Mvc.ActionResult
Create ( ) : System.Web.Mvc.ActionResult
Error ( string message ) : System.Web.Mvc.ActionResult
FireBeam ( int id, int bank, int targetId, BeamType type ) : System.Web.Mvc.ActionResult
Index ( int id = -1 ) : System.Web.Mvc.ActionResult
Invite ( int id, string inviteEmail ) : System.Web.Mvc.ActionResult
Join ( int id ) : System.Web.Mvc.ActionResult
LaunchProjectile ( int id, int tube, int targetId ) : System.Web.Mvc.ActionResult
LoadProjectile ( int id, int tube, ProjectileType type ) : System.Web.Mvc.ActionResult
Local ( int id = -1 ) : System.Web.Mvc.ActionResult
Quit ( int id ) : System.Web.Mvc.ActionResult
SelectShip ( int id, int defaultShipNumber, string name ) : string
SelectStation ( int id, Station station ) : string
SendCommand ( int id, int targetId, Command command ) : System.Web.Mvc.ActionResult
SetCoolantLevel ( int id, string part, int amount ) : System.Web.Mvc.ActionResult
SetDesiredHeading ( int id, float amount ) : System.Web.Mvc.ActionResult
SetDesiredSpeed ( int id, int amount ) : System.Web.Mvc.ActionResult
SetImpulse ( int id, int amount ) : string
SetMainScreen ( int id, MainView view ) : System.Web.Mvc.ActionResult
SetPower ( int id, string part, float amount ) : System.Web.Mvc.ActionResult
SetRepairTarget ( int id, string part ) : System.Web.Mvc.ActionResult
Start ( int id ) : System.Web.Mvc.ActionResult
ToggleAlert ( int id ) : System.Web.Mvc.ActionResult
ToggleShields ( int id ) : System.Web.Mvc.ActionResult

Private Methods

Method Description
AddErrorMessage ( string errorMessage ) : void
Create ( Game model ) : System.Web.Mvc.ActionResult
Initalize ( int id ) : void
LoadMessages ( ) : void
Send ( int id, string message ) : string

Method Details

BuildBase() public method

public BuildBase ( int id ) : System.Web.Mvc.ActionResult
id int
return System.Web.Mvc.ActionResult

BuildShip() public method

public BuildShip ( int id ) : System.Web.Mvc.ActionResult
id int
return System.Web.Mvc.ActionResult

Create() public method

public Create ( ) : System.Web.Mvc.ActionResult
return System.Web.Mvc.ActionResult

Error() public method

public Error ( string message ) : System.Web.Mvc.ActionResult
message string
return System.Web.Mvc.ActionResult

FireBeam() public method

public FireBeam ( int id, int bank, int targetId, BeamType type ) : System.Web.Mvc.ActionResult
id int
bank int
targetId int
type BeamType
return System.Web.Mvc.ActionResult

Index() public method

public Index ( int id = -1 ) : System.Web.Mvc.ActionResult
id int
return System.Web.Mvc.ActionResult

Invite() public method

public Invite ( int id, string inviteEmail ) : System.Web.Mvc.ActionResult
id int
inviteEmail string
return System.Web.Mvc.ActionResult

Join() public method

public Join ( int id ) : System.Web.Mvc.ActionResult
id int
return System.Web.Mvc.ActionResult

LaunchProjectile() public method

public LaunchProjectile ( int id, int tube, int targetId ) : System.Web.Mvc.ActionResult
id int
tube int
targetId int
return System.Web.Mvc.ActionResult

LoadProjectile() public method

public LoadProjectile ( int id, int tube, ProjectileType type ) : System.Web.Mvc.ActionResult
id int
tube int
type ProjectileType
return System.Web.Mvc.ActionResult

Local() public method

public Local ( int id = -1 ) : System.Web.Mvc.ActionResult
id int
return System.Web.Mvc.ActionResult

Quit() public method

public Quit ( int id ) : System.Web.Mvc.ActionResult
id int
return System.Web.Mvc.ActionResult

SelectShip() public method

public SelectShip ( int id, int defaultShipNumber, string name ) : string
id int
defaultShipNumber int
name string
return string

SelectStation() public method

public SelectStation ( int id, Station station ) : string
id int
station Station
return string

SendCommand() public method

public SendCommand ( int id, int targetId, Command command ) : System.Web.Mvc.ActionResult
id int
targetId int
command Command
return System.Web.Mvc.ActionResult

SetCoolantLevel() public method

public SetCoolantLevel ( int id, string part, int amount ) : System.Web.Mvc.ActionResult
id int
part string
amount int
return System.Web.Mvc.ActionResult

SetDesiredHeading() public method

public SetDesiredHeading ( int id, float amount ) : System.Web.Mvc.ActionResult
id int
amount float
return System.Web.Mvc.ActionResult

SetDesiredSpeed() public method

public SetDesiredSpeed ( int id, int amount ) : System.Web.Mvc.ActionResult
id int
amount int
return System.Web.Mvc.ActionResult

SetImpulse() public method

public SetImpulse ( int id, int amount ) : string
id int
amount int
return string

SetMainScreen() public method

public SetMainScreen ( int id, MainView view ) : System.Web.Mvc.ActionResult
id int
view MainView
return System.Web.Mvc.ActionResult

SetPower() public method

public SetPower ( int id, string part, float amount ) : System.Web.Mvc.ActionResult
id int
part string
amount float
return System.Web.Mvc.ActionResult

SetRepairTarget() public method

public SetRepairTarget ( int id, string part ) : System.Web.Mvc.ActionResult
id int
part string
return System.Web.Mvc.ActionResult

Start() public method

public Start ( int id ) : System.Web.Mvc.ActionResult
id int
return System.Web.Mvc.ActionResult

ToggleAlert() public method

public ToggleAlert ( int id ) : System.Web.Mvc.ActionResult
id int
return System.Web.Mvc.ActionResult

ToggleShields() public method

public ToggleShields ( int id ) : System.Web.Mvc.ActionResult
id int
return System.Web.Mvc.ActionResult