예제 #1
0
 public ActionResult Index(UserLogInViewModel model)
 {
     GameRequestViewModel game = new GameRequestViewModel();
     game.UserName = model.Name;
     game.UserPassword = model.Password;
     return View(game);
 }
예제 #2
0
 public ActionResult Index(GameRequestViewModel request)
 {
     game = GameApplication.Instance;
     GameViewModel model = new GameViewModel();
     List<int[]> pointsFrom = new List<int[]>();
     List<int[]> pointsTo = new List<int[]>();
     int drawSize;
     model.clickedPointY = 0;
     model.clickedPointX = 0;
     game.CreateGame(request.GameName, 800, 800, out pointsFrom, out pointsTo, out drawSize);//width, height!!!!!
     model.drawSize = drawSize;
     model.pointFrom = pointsFrom;
     model.pointsTo = pointsTo;
     model.Title = request.GameName;
     model.User = new CurrentUser() { Name = request.UserName, Password = request.UserPassword };
     model.Game = game;
     return View(model);
 }
예제 #3
0
 public ActionResult Index(GameRequestViewModel model)
 {
     return RedirectToAction("Index", "Game", model);
 }