public DrunkController(Dancer leadDancer, PerspectiveCamera camera)
 {
     _sound = SoundManager.Instance.GetPopSoundEffect();
     _camera = camera;
     _leadDancer = leadDancer;
 }
Beispiel #2
0
        public bool CollidesWith(Dancer dancer)
        {
            float dist2 = Vector3.DistanceSquared(Position, dancer.Position);

            if (dancer.IsHostile())
                return dist2 < 8000;

            return dist2 < 10000;
        }
Beispiel #3
0
 public CongaLine(Dancer leadDancer, PerspectiveCamera camera)
 {
     _dancers = new List<Dancer>();
     _dancers.Add(leadDancer);
     _drunkController = new DrunkController(leadDancer, camera);
 }
 public BehindViewBehavior(PerspectiveCamera camera, Dancer leadDancer)
 {
     _camera = camera;
     _leadDancer = leadDancer;
 }
Beispiel #5
0
 /// <summary>
 /// Adds a dancer to this conga line and forces it to follow the person at the end.
 /// </summary>
 public void AppendDancer(Dancer newDancer)
 {
     newDancer.SetDancerBehavior(new JoinLineDancerBehavior(newDancer, TailDancer));
     _dancers.Add(newDancer);
 }