C# Class WebGame.HomeController

Inheritance: BaseController
Show file Open project: AdmiralPotato/ggj2013

Public Methods

Method Description
CloseChatWindow ( int targetId, string targetName ) : void
GameManual ( ) : System.Web.Mvc.ActionResult
Index ( ) : System.Web.Mvc.ActionResult
IpAddresses ( string ipAddress = null ) : System.Web.Mvc.ActionResult
LoadChatMessages ( int targetId, string targetName ) : System.Web.Mvc.ActionResult
Messages ( ) : System.Web.Mvc.ActionResult
OptOut ( ) : System.Web.Mvc.ActionResult
PlayerInfo ( int id ) : System.Web.Mvc.ActionResult
Stats ( ) : System.Web.Mvc.ActionResult

Private Methods

Method Description
Chat ( int targetId, string message ) : string
LoadMessages ( DBConnection db, int toId ) : List
OptOut ( int account ) : System.Web.Mvc.ActionResult
SendMessage ( int accountId = -1, string message = null ) : System.Web.Mvc.ActionResult

Method Details

CloseChatWindow() public method

public CloseChatWindow ( int targetId, string targetName ) : void
targetId int
targetName string
return void

GameManual() public method

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

Index() public method

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

IpAddresses() public method

public IpAddresses ( string ipAddress = null ) : System.Web.Mvc.ActionResult
ipAddress string
return System.Web.Mvc.ActionResult

LoadChatMessages() public method

public LoadChatMessages ( int targetId, string targetName ) : System.Web.Mvc.ActionResult
targetId int
targetName string
return System.Web.Mvc.ActionResult

Messages() public method

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

OptOut() public method

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

PlayerInfo() public method

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

Stats() public method

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