Пример #1
0
 public Player(Connection connection)
 {
     this.connection = connection; //without this, new Packets(this); wouldn't function.
     if (connection != null)
     {
         loginDetails = connection.getLoginDetails();
     }
     appearance       = new Appearance();
     follow           = new Follow(this);
     bank             = new Bank(this);
     inventory        = new Inventory(this);
     equipment        = new Equipment(this);
     friends          = new Friends(this);
     prayers          = new Prayers(this);
     skills           = new Skills(this);
     attackStyle      = new AttackStyle();
     packets          = new Packets(this);
     localEnvironment = new LocalEnvironment(this);
     updateFlags      = new AppearanceUpdateFlags(this);
     walkingQueue     = new WalkingQueue(this);
     specialAttack    = new SpecialAttack(this);
     chat             = true;
     split            = false;
     mouse            = true;
     aid                  = false;
     magicType            = 1;
     achievementDiaryTab  = false;
     forgeCharge          = 40;
     smallPouchAmount     = 0;
     mediumPouchAmount    = 0;
     largePouchAmount     = 0;
     giantPouchAmount     = 0;
     defenderWave         = 0;
     autoRetaliate        = false;
     vengeance            = false;
     lastVengeanceTime    = 0;
     poisonAmount         = 0;
     specialAmount        = 100;
     skullCycles          = 0;
     recoilCharges        = 40;
     barrowTunnel         = -1;
     barrowKillCount      = 0;
     barrowBrothersKilled = new bool[6];
     slayerPoints         = 0;
     removedSlayerTasks   = new string[4];
     for (int i = 0; i < removedSlayerTasks.Length; i++)
     {
         removedSlayerTasks[i] = "-";
     }
     agilityArenaStatus      = 0;
     taggedLastAgilityPillar = false;
     paidAgilityArena        = false;
     teleblockTime           = 0;
     lastHit               = -1;
     prayerDrainRate       = 0;
     superAntipoisonCycles = 0;
     antifireCycles        = 0;
     tradeRequests         = new List <Player>();
     duelRequests          = new List <Player>();
 }
Пример #2
0
 public Player(Connection connection)
 {
     this.connection = connection; //without this, new Packets(this); wouldn't function.
     if(connection != null)
         loginDetails = connection.getLoginDetails();
     appearance = new Appearance();
     follow = new Follow(this);
     bank = new Bank(this);
     inventory = new Inventory(this);
     equipment = new Equipment(this);
     friends = new Friends(this);
     prayers = new Prayers(this);
     skills = new Skills(this);
     attackStyle = new AttackStyle();
     packets = new Packets(this);
     localEnvironment = new LocalEnvironment(this);
     updateFlags = new AppearanceUpdateFlags(this);
     walkingQueue = new WalkingQueue(this);
     specialAttack = new SpecialAttack(this);
     chat = true;
     split = false;
     mouse = true;
     aid = false;
     magicType = 1;
     achievementDiaryTab = false;
     forgeCharge = 40;
     smallPouchAmount = 0;
     mediumPouchAmount = 0;
     largePouchAmount = 0;
     giantPouchAmount = 0;
     defenderWave = 0;
     autoRetaliate = false;
     vengeance = false;
     lastVengeanceTime = 0;
     poisonAmount = 0;
     specialAmount = 100;
     skullCycles = 0;
     recoilCharges = 40;
     barrowTunnel = -1;
     barrowKillCount = 0;
     barrowBrothersKilled = new bool[6];
     slayerPoints = 0;
     removedSlayerTasks = new string[4];
     for (int i = 0; i < removedSlayerTasks.Length; i++)
     {
         removedSlayerTasks[i] = "-";
     }
     agilityArenaStatus = 0;
     taggedLastAgilityPillar = false;
     paidAgilityArena = false;
     teleblockTime = 0;
     lastHit = -1;
     prayerDrainRate = 0;
     superAntipoisonCycles = 0;
     antifireCycles = 0;
     tradeRequests = new List<Player>();
     duelRequests = new List<Player>();
 }