Files
behavioral-patterns/src/TemplatePattern/GameExample/Game.cs
2016-07-14 12:29:09 +03:00

25 lines
457 B
C#

using System;
using System.Collections.Generic;
using System.Linq;
using System.Threading.Tasks;
namespace TemplatePattern.GameExample
{
public abstract class Game
{
protected abstract void InitGame();
protected abstract void StartGame();
protected abstract void EndGame();
public void Play()
{
InitGame();
StartGame();
EndGame();
}
}
}