public GodsOfCalamity.Entity.Fire SpawnFire(int xPos, int yPos) { GodsOfCalamity.Entity.Fire newFire = new GodsOfCalamity.Entity.Fire(); newFire.sprite.Margin = new Windows.UI.Xaml.Thickness(xPos, yPos, 0, 0); if (xPos >= 832 && xPos <= 1088 && yPos >= 412 && yPos <= 668) { // call damage method // do not destroy here, need to call damage on some number of ticks } return(newFire); }
public GodsOfCalamity.Entity.Fire PropagateWest(GodsOfCalamity.Entity.Fire currentFire) { FireSpawn newFireSystem = new FireSpawn(); double currentY = currentFire.sprite.Margin.Top; double currentX = currentFire.sprite.Margin.Left; int Y = Convert.ToInt32(currentY); int X = Convert.ToInt32(currentX); X -= 128; GodsOfCalamity.Entity.Fire newFire = newFireSystem.SpawnFire(X, Y); return(newFire); }