if(typeof SWIRL == "undefined") SWIRL={};
if(typeof SWIRL.DNN == "undefined") SWIRL.DNN={};
if(typeof SWIRL.DNN.Modules == "undefined") SWIRL.DNN.Modules={};
if(typeof SWIRL.DNN.Modules.MiniGame == "undefined") SWIRL.DNN.Modules.MiniGame={};
SWIRL.DNN.Modules.MiniGame.AJAX_class = function() {};
Object.extend(SWIRL.DNN.Modules.MiniGame.AJAX_class.prototype, Object.extend(new AjaxPro.AjaxClass(), {InternalTest: function(strTest) {return this.invoke("InternalTest", {"strTest":strTest}, this.InternalTest.getArguments().slice(1));},DeleteWarband: function(warband_id) {return this.invoke("DeleteWarband", {"warband_id":warband_id}, this.DeleteWarband.getArguments().slice(1));},UseWarband: function(game_id, player_id, warband_id, x_coord, y_coord) {return this.invoke("UseWarband", {"game_id":game_id, "player_id":player_id, "warband_id":warband_id, "x_coord":x_coord, "y_coord":y_coord}, this.UseWarband.getArguments().slice(5));},CreateWarband: function(game_id, player_id, warband_name) {return this.invoke("CreateWarband", {"game_id":game_id, "player_id":player_id, "warband_name":warband_name}, this.CreateWarband.getArguments().slice(3));},GetWarbands: function(game_id, player_id, gametype_id) {return this.invoke("GetWarbands", {"game_id":game_id, "player_id":player_id, "gametype_id":gametype_id}, this.GetWarbands.getArguments().slice(3));},GetCurrentGames: function() {return this.invoke("GetCurrentGames", {}, this.GetCurrentGames.getArguments().slice(0));},EndGame: function(game_id) {return this.invoke("EndGame", {"game_id":game_id}, this.EndGame.getArguments().slice(1));},InitUser: function(game_id, player_id, player_name) {return this.invoke("InitUser", {"game_id":game_id, "player_id":player_id, "player_name":player_name}, this.InitUser.getArguments().slice(3));},GetNewPieces: function(arPieceIDs) {return this.invoke("GetNewPieces", {"arPieceIDs":arPieceIDs}, this.GetNewPieces.getArguments().slice(1));},GetGamepieceMovement: function(game_id, player_id) {return this.invoke("GetGamepieceMovement", {"game_id":game_id, "player_id":player_id}, this.GetGamepieceMovement.getArguments().slice(2));},RemovePiece: function(game_id, gamepiece_id, player_id) {return this.invoke("RemovePiece", {"game_id":game_id, "gamepiece_id":gamepiece_id, "player_id":player_id}, this.RemovePiece.getArguments().slice(3));},GetPieceInfo_Dreamblade: function(gamepiece_id) {return this.invoke("GetPieceInfo_Dreamblade", {"gamepiece_id":gamepiece_id}, this.GetPieceInfo_Dreamblade.getArguments().slice(1));},MoveGamepiece: function(game_id, gamepiece_id, x_coord, y_coord, player_id) {return this.invoke("MoveGamepiece", {"game_id":game_id, "gamepiece_id":gamepiece_id, "x_coord":x_coord, "y_coord":y_coord, "player_id":player_id}, this.MoveGamepiece.getArguments().slice(5));},GenerateSealed: function(game_id, player_id, x_coord, y_coord) {return this.invoke("GenerateSealed", {"game_id":game_id, "player_id":player_id, "x_coord":x_coord, "y_coord":y_coord}, this.GenerateSealed.getArguments().slice(4));},BoolNewMoves: function(game_id) {return this.invoke("BoolNewMoves", {"game_id":game_id}, this.BoolNewMoves.getArguments().slice(1));},BoolNewGameMessages: function(game_id) {return this.invoke("BoolNewGameMessages", {"game_id":game_id}, this.BoolNewGameMessages.getArguments().slice(1));},BoolNewLobbyMessages: function(module_id) {return this.invoke("BoolNewLobbyMessages", {"module_id":module_id}, this.BoolNewLobbyMessages.getArguments().slice(1));},GetGameChatMessages: function(game_id) {return this.invoke("GetGameChatMessages", {"game_id":game_id}, this.GetGameChatMessages.getArguments().slice(1));},GetLobbyChatMessages: function(module_id) {return this.invoke("GetLobbyChatMessages", {"module_id":module_id}, this.GetLobbyChatMessages.getArguments().slice(1));},AddGameChatMessage: function(game_id, msg_text, msg_color, from_player_id, msg_type) {return this.invoke("AddGameChatMessage", {"game_id":game_id, "msg_text":msg_text, "msg_color":msg_color, "from_player_id":from_player_id, "msg_type":msg_type}, this.AddGameChatMessage.getArguments().slice(5));},AddLobbyChatMessage: function(module_id, msg_text, msg_color, from_player_id, msg_type) {return this.invoke("AddLobbyChatMessage", {"module_id":module_id, "msg_text":msg_text, "msg_color":msg_color, "from_player_id":from_player_id, "msg_type":msg_type}, this.AddLobbyChatMessage.getArguments().slice(5));},RollDice: function(game_id, player_id, gametype_id, dice_type_id, num_dice) {return this.invoke("RollDice", {"game_id":game_id, "player_id":player_id, "gametype_id":gametype_id, "dice_type_id":dice_type_id, "num_dice":num_dice}, this.RollDice.getArguments().slice(5));},GetGame: function(game_id) {return this.invoke("GetGame", {"game_id":game_id}, this.GetGame.getArguments().slice(1));},GetGamePlayers: function(game_id) {return this.invoke("GetGamePlayers", {"game_id":game_id}, this.GetGamePlayers.getArguments().slice(1));},UpdatePlayerScore: function(game_id, player_name, player_score) {return this.invoke("UpdatePlayerScore", {"game_id":game_id, "player_name":player_name, "player_score":player_score}, this.UpdatePlayerScore.getArguments().slice(3));},BoolNewGameUsers: function(game_id) {return this.invoke("BoolNewGameUsers", {"game_id":game_id}, this.BoolNewGameUsers.getArguments().slice(1));},BoolNewLobbyUsers: function(module_id, strUserListGUID) {return this.invoke("BoolNewLobbyUsers", {"module_id":module_id, "strUserListGUID":strUserListGUID}, this.BoolNewLobbyUsers.getArguments().slice(2));},PollGame: function(game_id, player_name) {return this.invoke("PollGame", {"game_id":game_id, "player_name":player_name}, this.PollGame.getArguments().slice(2));},PollLobby: function(module_id, strUserid, strUserListGUID) {return this.invoke("PollLobby", {"module_id":module_id, "strUserid":strUserid, "strUserListGUID":strUserListGUID}, this.PollLobby.getArguments().slice(3));},AddNewPiece: function(game_id, piece_id, bgcolor, x_coord, y_coord, player_id) {return this.invoke("AddNewPiece", {"game_id":game_id, "piece_id":piece_id, "bgcolor":bgcolor, "x_coord":x_coord, "y_coord":y_coord, "player_id":player_id}, this.AddNewPiece.getArguments().slice(6));},GetUserList: function(intModuleID) {return this.invoke("GetUserList", {"intModuleID":intModuleID}, this.GetUserList.getArguments().slice(1));},url: '/DesktopModules/SWIRL.DNN.Modules.MiniGame.AJAX,SWIRL.DNN.Modules.MiniGame.ashx'
}));
SWIRL.DNN.Modules.MiniGame.AJAX = new SWIRL.DNN.Modules.MiniGame.AJAX_class();