public Monster() { PosX = 0; PosY = 0; PosZ = 0; SpeedX = 0; SpeedY = 0; SizeX = 10; SizeY = 20; Speed = 20; Color = RandomExt.GetRandomColor(0, 3); }
private void SetSomeFood() { for (var i = 0; i < CountOfFood; i++) { ResultPosition coord = RandomExt.GetRandomPosition((int)SizeX, (int)SizeY, Food.MaxSize, Food.MaxSize); SomeFood.Add(new Food() { Size = RandomExt.GetRandomSize(Food.MinSize, Food.MaxSize), Weight = RandomExt.GetRandomWeight(Food.MinWeight, Food.MaxWeight), PosX = coord.x, PosY = coord.y, Color = RandomExt.GetRandomColor(3, 7) }); } }