Exit
  • Global community
    • Language:
      • Deutsch
      • English
      • Español
      • Français
      • Português
  • 日本語コミュニティ
  • 한국 커뮤니티
0

how to make object available for all MVC classes

Community Beginner ,
Apr 12, 2014 Apr 12, 2014

I am converting as3 game into MVC pattern. In my game I have used a object which has game status and full game details. First I thought to keep the game object in model class, so which I can update and access the object. I like to know whether I am going in a right path or is there any better way to do this.

Please tell about your view here.

TOPICS
ActionScript
318
Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Guru ,
Apr 14, 2014 Apr 14, 2014
LATEST

"which has game status and full game details"

not really sure what you mean by "full game details", if you mean assets, UI etc, then you split that part away and move it to VIEW and parts of the UI that the user can interact with (usually Buttons and other components) to CONTROLLER

any data belongs into the Model but in general nothing what has a visual represantation.

This is one of the simplest diagrams to look at MVC:

http://en.wikipedia.org/wiki/File:MVC-Process.svg

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines