Ejemplo n.º 1
0
        public void AddMonster(Monster m)
        {
            _monsters[m.ID] = m;

            // Send this monster to all plaers
            foreach (Connection c in _players.Values)
            {
                c.SendPacket(new NPCInfoPacket(m));
            }
        }
Ejemplo n.º 2
0
        public Monster Instantiate(Location loc)
        {
            Monster m = new Monster(loc, this);

            return m;
        }
Ejemplo n.º 3
0
 public PlayerGetAttackedPacket(Monster attacker, CharacterInfo victim, ushort attackType)
 {
     _attacker = attacker;
     _ci = victim;
     _motion = 1;
     _attackType = attackType;
 }