public void Initialize(Map map, Texture2D floraTexture) { Sprite = floraTexture; Flora = new Flora[map.SizeX, map.SizeY]; Types = new FloraType[50]; Types[1] = new FloraType("Grass", new Rectangle(0, 0, 24, 24), null, 10, 2); Types[2] = new FloraType("Grass", new Rectangle(24, 0, 24, 24), null, 10, 3); Types[3] = new FloraType("Grass", new Rectangle(48, 0, 24, 24), null, 10, 4); Types[4] = new FloraType("Grass", new Rectangle(72, 0, 24, 24), null, 10, 5); Types[5] = new FloraType("Grass", new Rectangle(96, 0, 24, 24), null, 10, 6); Types[6] = new FloraType("Grass", new Rectangle(120, 0, 24, 24), null, 10, 0); Types[10] = new FloraType("Cyan Flower", new Rectangle(0, 24, 24, 24)); Types[11] = new FloraType("Pink Flower", new Rectangle(24, 24, 24, 24)); Types[12] = new FloraType("Blue Flower", new Rectangle(24, 24, 24, 24)); Types[13] = new FloraType("Orange Flower", new Rectangle(24, 24, 24, 24)); Types[14] = new FloraType("Purple Flower", new Rectangle(24, 24, 24, 24)); Types[30] = new FloraType("Vine", new Rectangle(0, 48, 24,24)); Types[31] = new FloraType("Vine", new Rectangle(24, 48, 24, 24)); Types[32] = new FloraType("Vine", new Rectangle(48, 48, 24, 24)); Types[33] = new FloraType("Vine", new Rectangle(72, 48, 24, 24)); }
public Flora(FloraType type) { Type = type; GrowUpto = 0; }