public void RunVisitor(ICharacterVisitor visitor)
 {
     foreach (ICharacter character in mEnemys)
     {
         character.RunVisitor(visitor);
     }
     foreach (ICharacter character in mSoldiers)
     {
         character.RunVisitor(visitor);
     }
 }
 // 執行Visitor
 public void RunVisitor(ICharacterVisitor Visitor)
 {
     foreach (ICharacter Character in m_Soldiers)
     {
         Character.RunVisitor(Visitor);
     }
     foreach (ICharacter Character in m_Enemys)
     {
         Character.RunVisitor(Visitor);
     }
 }
Пример #3
0
 /// <summary>
 /// 访问者模式, 将Visitor传进来,并各个角色执行访问
 /// </summary>
 /// <param name="visitor"></param>
 public void RunVisitor(ICharacterVisitor visitor)
 {
     foreach (var item in m_Enemys)
     {
         item.RunVisitor(visitor);
     }
     foreach (var item in m_Soldiers)
     {
         item.RunVisitor(visitor);
     }
 }
Пример #4
0
 /// <summary>
 ///运行角色访问器
 /// </summary>
 /// <param name="characterVisitor"></param>
 public void RunVisitor(ICharacterVisitor characterVisitor)
 {
     foreach (ICharacter e in mEnemys)
     {
         e.RunVisitor(characterVisitor);
     }
     foreach (ICharacter s in mSoldiers)
     {
         s.RunVisitor(characterVisitor);
     }
 }
Пример #5
0
    public void RunVisitor(ICharacterVisitor visitor)
    {
        foreach (IEnemy enemy in mEnemys)
        {
            enemy.RunVisitor(visitor);
        }

        foreach (ISoldier soldier in mSoldiers)
        {
            soldier.RunVisitor(visitor);
        }
    }
Пример #6
0
 public override void Accept(ICharacterVisitor visitor)
 {
     visitor.Visit(this);
 }
Пример #7
0
 public override void RunVisitor(ICharacterVisitor visitor)
 {
     visitor.VisitSoldier(this);
 }
	// 執行Visitor
	public void RunVisitor(ICharacterVisitor Visitor)
	{
		foreach( ICharacter Character in m_Soldiers)
			Character.RunVisitor( Visitor);
		foreach( ICharacter Character in m_Enemys)
			Character.RunVisitor( Visitor);
	}
Пример #9
0
 // 執行Visitor
 public override void RunVisitor(ICharacterVisitor Visitor)
 {
     Visitor.VisitEnemyOgre(this);
 }
Пример #10
0
	// 執行Visitor
	public override void RunVisitor(ICharacterVisitor Visitor)
	{
		//
	}
Пример #11
0
 public override void RunVisitor(ICharacterVisitor characterVisitor)
 {
     base.RunVisitor(characterVisitor);
     characterVisitor.VisitorCaptain(this);
 }
	// 執行角色系統的Visitor
	public void RunCharacterVisitor(ICharacterVisitor Visitor)
	{
		m_CharacterSystem.RunVisitor( Visitor );
	}
Пример #13
0
 public override void RunVisitor(ICharacterVisitor characterVisitor)
 {
     characterVisitor.VisitorEnemy(this);
 }
Пример #14
0
 public override void RunVisitor(ICharacterVisitor characterVisitor)
 {
     base.RunVisitor(characterVisitor);
     characterVisitor.VisitorRookie(this);
 }
Пример #15
0
	// 執行Visitor
	public override void RunVisitor(ICharacterVisitor Visitor)
	{
		Visitor.VisitSoldierSergeant(this);
	}
Пример #16
0
 public virtual void RunVisitor(ICharacterVisitor visitor)
 {
 }
Пример #17
0
 // 執行Visitor
 public override void RunVisitor(ICharacterVisitor Visitor)
 {
     //
 }
Пример #18
0
 // 執行Visitor
 public override void RunVisitor(ICharacterVisitor Visitor)
 {
     Visitor.VisitSoldierSergeant(this);
 }
Пример #19
0
 public override void RunVisitor(ICharacterVisitor Visitor)
 {
     Visitor.VisitCharacter(this);
 }
Пример #20
0
 // 執行Visitor
 public override void RunVisitor(ICharacterVisitor Visitor)
 {
     Visitor.VisitSoldierCaptain(this);
 }
Пример #21
0
	// 執行Visitor
	public override void RunVisitor(ICharacterVisitor Visitor)
	{
		Visitor.VisitEnemyElf(this);
	}
Пример #22
0
 // 执行角色系统的Visitor
 public void RunCharacterVisitor(ICharacterVisitor Visitor)
 {
     m_CharacterSystem.RunVisitor(Visitor);
 }
Пример #23
0
	// 執行Visitor
	public override void RunVisitor(ICharacterVisitor Visitor)
	{
		Visitor.VisitSoldierCaptive(this);
	}
Пример #24
0
	// 執行Visitor
	public virtual void RunVisitor(ICharacterVisitor Visitor)
	{
		Visitor.VisitCharacter(this);
	}
Пример #25
0
 // 执行Visitor
 public virtual void RunVisitor(ICharacterVisitor Visitor)
 {
     Visitor.VisitCharacter(this);
 }
Пример #26
0
 public abstract void RunVisitor(ICharacterVisitor visitor);
Пример #27
0
 public override void RunVisitor(ICharacterVisitor visitor)
 {
     visitor.VisitEnemy(this);
 }
 // 执行Visitor
 public override void RunVisitor(ICharacterVisitor Visitor)
 {
     Visitor.VisitSoldierRookie(this);
 }
Пример #29
0
 public void RunVisitor(ICharacterVisitor visitor)
 {
     mCharacterSystem.RunVisitor(visitor);
 }
Пример #30
0
 public override void RunVisitor(ICharacterVisitor characterVisitor)
 {
     base.RunVisitor(characterVisitor);
     characterVisitor.VisitorSergeant(this);
 }