Пример #1
0
 public Food(Tree.Leaf.Flower Parent)
 {
     this.Parent = Parent;
     Seed        = Form1.Rand.NextDouble() < 0.6;
     Col         = Parent.Leaf.Tree.FruitColor;
     MaxEnergy   = Energy = 250;
 }
Пример #2
0
 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;
 }
Пример #3
0
 void Eat(Tree.Leaf.Flower Flower)
 {
     Flower.Leaf.CurrentFlower = null;
     EatenFood.Add(new Food(Flower));
     UpdateWorld.Entities.Remove(Flower);
 }