public Food(Tree.Leaf.Flower Parent) { this.Parent = Parent; Seed = Form1.Rand.NextDouble() < 0.6; Col = Parent.Leaf.Tree.FruitColor; MaxEnergy = Energy = 250; }
public Seed(Tree.Leaf.Flower Fruit, Vector Pos, VectorI Chunk) { this.Pos = Pos; ChunkPos = Chunk; Parent = Fruit.Leaf.Tree; Parent2 = Fruit.Pollen.Leaf.Tree; StartEnergy = 30; Col = Fruit.Col; Edible = false; }
void Eat(Tree.Leaf.Flower Flower) { Flower.Leaf.CurrentFlower = null; EatenFood.Add(new Food(Flower)); UpdateWorld.Entities.Remove(Flower); }