/// <summary> /// Moves all of the moons /// </summary> /// <param name="row">Row</param> /// <param name="col">Column</param> private void MoveMoons(int row, int col) { //Check if its a moonflower if (_vars.board[row, col] is MoonFlower) { //Create the moonflower MoonFlower moonFlower = _vars.board[row, col] as MoonFlower; //Loop through all of the moons to draw foreach (Moon moon in moonFlower.GetMoonsToDraw()) { //Move it moon.Move(); } } }
/// <summary> /// Gets the moons to draw /// </summary> /// <param name="moonFlower">The moonflower in question</param> /// <returns>The moons to draw</returns> public List <Moon> GetMoonsToDraw(MoonFlower moonFlower) { return(moonFlower.GetMoonsToDraw()); }