public void invaderupdate(int column, Invader.type type) { for (int x = 0; x < 15; x++) { soldier[x, column].Type = type; } }
public void resetArmy(int level, Invader.type type, Invader.type type1, Invader.type type2, Invader.type type3, Invader.type type4, Invader.type type5) { _location = new Vector2(0, 40); float width = 0; for (int x = 0; x < 15; x++) { width = (float)(x * 40); for (int y = 0; y < 6; y++) { soldier[x, 0].Type = type; soldier[x, 1].Type = type1; soldier[x, 2].Type = type2; soldier[x, 3].Type = type3; soldier[x, 4].Type = type4; soldier[x, 5].Type = type5; soldier[x, y].FrameCount = rand.Next(0, 4); soldier[x, y].Location = new Vector2(width, (y * 40) + 40); } } }
public void setTexture(Invader.type type, Texture2D tex) { _skin[(int)type] = tex; }