Example #1
0
 public Client(int orderLevel, Animation animation)
     : base()
 {
     this.waiting = false;
       this.order = Order.generateNewOrder(orderLevel);
       this.animation = animation;
 }
Example #2
0
        public Client(int orderLevel, Point startPos, Point destPos)
            : base(startPos, destPos)
        {
            this.name = "Client";
              this.waiting = false;

              this.order = Order.generateNewOrder(orderLevel);

              animation = new Animation(Game1.Sprites[Game1.Characters.Client]);

              // Adjust position so that it's created from the middle bottom.
              this.Position = new Vector2(startPos.X - animation.width / 2, startPos.Y - animation.height);

              // Load Speech Bubbles
              Sprite left = Game1.SpritesSpeechBubbles[Game1.SpeechBubble.LeftTalk];
              Sprite right = Game1.SpritesSpeechBubbles[Game1.SpeechBubble.RightTalk];

              speechBubble = new SpeechBubble(left, right, startPos, left.sourceRect.Width, left.sourceRect.Height);

              // Add resources to speech bubble from Order
              addResourcesToSpeechBubble();
        }
 public Scientist(Animation animation)
     : base()
 {
     this.animation = animation;
 }
 public Resource(Sprite sprite)
 {
     this.sprite = sprite;
       this.position = Point.Zero;
       this.animation = new Animation(sprite);
 }