Пример #1
0
 public People(Texture2D texture, Vector2 position, Vector2 mapPosition, Texture2D[] burningSequence, Texture2D burnt)
     : base(texture, position)
 {
     myMapPosition = mapPosition;
     name = "People";
     myBurningSequence = burningSequence;
     myBurning = new Animate(burningSequence);
     SetUpBurning();
     myBurnt = burnt;
     myState = new RegularState(this);
 }
Пример #2
0
 public House(Texture2D texture, Vector2 position, Vector2 mapPosition, Texture2D[] animateSequence, Texture2D burnt)
     : base(texture, position)
 {
     myMapPosition = mapPosition;
     name = "House";
     myAnimateSequence = animateSequence;
     myAnimate = new Animate(animateSequence);
     SetUpAnimate();
     myBurnt = burnt;
     myState = new RegularState(this);
 }
Пример #3
0
 public Tree(Texture2D texture, Vector2 position, Vector2 mapPosition,
     Texture2D[] burningSequence, Texture2D burnt, Texture2D[] multiplyTree)
     : base(texture, position)
 {
     myMapPosition = mapPosition;
     name = "Tree";
     myBurningSequence = burningSequence;
     myBurning = new Animate(burningSequence);
     SetUpBurning();
     myBurnt = burnt;
     myMultiplySequence = multiplyTree;
     myMultiply = new Animate(multiplyTree);
     SetUpMultiply();
     myState = new RegularState(this);
 }