Add game example to template pattern

This commit is contained in:
Petrutiu Mihai
2016-07-06 10:24:01 +03:00
parent 97fb73c7fd
commit 9d16508e68
5 changed files with 95 additions and 0 deletions

View File

@@ -0,0 +1,24 @@
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();
}
}
}