Пример #1
0
        public OnlinePlayer AuthPlayer(string sessionId, string userName, string password)
        {
            pHelper = new PlayerHelper();
            pHelper.AuthUser(userName, password);

            if (pHelper.Player.IsLoaded)
            {
                pHelper.Player.TokenID = sessionId;
            }

            return pHelper.Player;
        }
Пример #2
0
 protected void btnTurn_Click(object sender, EventArgs e)
 {
     UniverseHelper uh = new UniverseHelper ();
     uh.Universe = ActiveUniverse;
     uh.Tick ();
     PlayerHelper ph = new PlayerHelper ();
     ph.Player = ActivePlayer;
     ph.Tick ();
     //			Star st = uh.Universe.Galaxies [0].Stars.First (s => s.OrbitalBodies.Exists(ob => !ob.IsSaved));
     LoadStarData ();
     //			DBCommandResult res = dh.EndTurn (7);
     //			if (res.ResultCode == 0) {
     //				Galaxy g = new Galaxy ();
     //			}
 }
Пример #3
0
        public OnlinePlayer RegisterNewPlayer(Player p)
        {
            pHelper = new PlayerHelper();

            pHelper.Player = p;
            pHelper.Register();

            return pHelper.Player;
        }