diff --git a/controller/controller.go b/controller/controller.go index 329f21b..3f346d7 100644 --- a/controller/controller.go +++ b/controller/controller.go @@ -9,7 +9,3 @@ type Controller struct { func (c Controller) Init() { } - -func (c Controller) Start() { - -} diff --git a/domain/domain.go b/domain/domain.go index 48f58b0..2c65b25 100644 --- a/domain/domain.go +++ b/domain/domain.go @@ -1,9 +1,11 @@ package domain type ControllerInterface interface { + Init() } type PresenterInterface interface { + Init() } type Domain struct { @@ -13,14 +15,11 @@ type Domain struct { } func (d Domain) Init() { + d.Controller.Init() + d.Presenter.Init() menu_manager := MenuManager{} menu_manager.Init() // level_manager := LevelManager{} screen_manager := ScreenManager{} screen_manager.GetCurrent() - -} - -func (d Domain) Start() { - } diff --git a/main.go b/main.go index 45bf935..6f5d210 100644 --- a/main.go +++ b/main.go @@ -12,19 +12,13 @@ func main() { controller := controller.Controller{ Context: context, } - controller.Init() - presenter := presenter.Presenter{ Context: context, } - presenter.Init() - domain := domain.Domain{ - Context: context, + Context: context, + Controller: controller, + Presenter: presenter, } domain.Init() - - domain.Start() - controller.Start() - presenter.Start() } diff --git a/presenter/presenter.go b/presenter/presenter.go index d9f74ac..c155a56 100644 --- a/presenter/presenter.go +++ b/presenter/presenter.go @@ -9,11 +9,3 @@ type Presenter struct { func (p Presenter) Init() { } - -func (p Presenter) Start() { - -} - -func (p Presenter) Process() { - -}