Exemplo n.º 1
0
 public Quest GetFirstQuest(Player player)
 {
     foreach (KeyValuePair<int, Quest> q in quests)
     {
         if (!player.CompletedQuests.Contains(q.Key))
             return q.Value; ;
     }
     return null;
 }
Exemplo n.º 2
0
 public bool ExistTakeableQuest(Player player)
 {
     foreach (KeyValuePair<int, Quest> q in quests)
     {
         if (!player.CompletedQuests.Contains(q.Key))
             return true;
     }
     return false;
 }
Exemplo n.º 3
0
 public static void SendTargetChangedMsg(Player player)
 {
     ProjectXServer.Messages.PlayerTargetChanged msg = new ProjectXServer.Messages.PlayerTargetChanged();
     msg.Target = new float[2];
     msg.Target[0] = player.Target.X;
     msg.Target[1] = player.Target.Y;
     msg.Position = new float[2];
     msg.Position[0] = player.Position.X;
     msg.Position[1] = player.Position.Y;
     //ProjectXServer.Messages.ProtobufAdapter.Send(clientchannel, msg);
     Beetle.ProtoBufAdapter.MessageAdapter.Send(clientchannel, msg);
 }
Exemplo n.º 4
0
 private void comboBoxClass_SelectedIndexChanged(object sender, EventArgs e)
 {
     switch (comboBoxClass.SelectedIndex)
     {
         case 0:
             player = new Deathknight();
             break;
         case 1:
             player = new Druid();
             break;
         case 2:
             player = new Hunter();
             break;
         case 3:
             player = new Mage();
             break;
         case 4:
             player = new Paladin();
             break;
         case 5:
             player = new Priest();
             break;
         case 6:
             player = new Rogue();
             break;
         case 7:
             player = new Shaman();
             break;
         case 8:
             player = new Warlock();
             break;
         case 9:
             player = new Warrior();
             break;
     }
     updateDPSandIncreases();
     updateTabsContent();
     updateRaceClassWarning();
 }