コード例 #1
0
        public void AddCharacterSeenBy(GameCharacter c)
        {
            if (charsSeenBy.Contains(c))
            {
                return;
            }

            charsSeenBy.Add(c);
        }
コード例 #2
0
        public void AddCharacterInView(GameCharacter c)
        {
            if (charsInView.Contains(c))
            {
                return;
            }

            charsInView.Add(c);

            this.Inform_AddCharacterInView(c);
        }
コード例 #3
0
 public abstract void Inform_RemoveCharacterInView(GameCharacter newChar);
コード例 #4
0
 public abstract void Inform_CharacterMovePoint(GameCharacter charFrom, MovePoint mp);
コード例 #5
0
 public abstract void Inform_CharacterTeleport(GameCharacter charFrom, Position2D pos);
コード例 #6
0
 public bool CanSeeCharacter(GameCharacter c)
 {
     //For now, everyone can see all characters in instance
     return(true);
 }
コード例 #7
0
 public override void Inform_CharacterTeleport(GameCharacter charFrom, Position2D pos)
 {
     this.SendPacket(new ClientToInstancePackets.Character_Position_c(charFrom.Id, pos.x, pos.y));
 }
コード例 #8
0
 public override void Inform_RemoveCharacterInView(GameCharacter oldChar)
 {
     this.SendPacket(new ClientToInstancePackets.Character_Remove_c(oldChar.Id));
 }
コード例 #9
0
 public override void Inform_CharacterMovePoint(GameCharacter charFrom, MovePoint mp)
 {
     this.SendPacket(new ClientToInstancePackets.Character_Movement_c(charFrom.Id, mp));
 }
コード例 #10
0
 public override void Inform_AddCharacterInView(GameCharacter newChar)
 {
     this.SendPacket(new ClientToInstancePackets.Character_Add_c(newChar.Id, CharacterType.Player, info.Name));
     this.SendPacket(new ClientToInstancePackets.Character_Position_c(newChar.Id, newChar.Position.x, newChar.Position.y));
     this.SendPacket(new ClientToInstancePackets.Character_UpdateStats_c(newChar.Id, newChar.Stats));
 }