Пример #1
0
 public Cow(CowManager manager, WallManager wallManager, CowStack cowStack, Texture2D h1Texture, Texture2D h2Texture, int health)
 {
     cowPosition = new Vector2(0, floorLevel);
     this.manager = manager;
     this.wallManager = wallManager;
     isDead = false;
     partOfPyramid = false;
     this.cowStack = cowStack;
     this.health = health;
     healthBar = new HealthBar(h1Texture, h2Texture, cowPosition, health);
 }
Пример #2
0
 public Bull(CowManager manager, WallManager wallManager, CowStack cowStack, Texture2D h1Texture, Texture2D h2Texture)
     : base(manager, wallManager, cowStack, h1Texture, h2Texture, health)
 {
 }
Пример #3
0
 public void SetWallManager(WallManager wallManager)
 {
     this.wallManager = wallManager;
     cowStack = new CowStack(wallManager);
 }