1 / 20

Návrhový vzor FaCTORY A TVORBA HIER

Programovací Jazyky II. Návrhový vzor FaCTORY A TVORBA HIER. Factory ( Továrňa ). Super Mario .NET. Návrh Hry. Návrh Hry. GameWindow - Návrh. BackColor : 107; 140; 255 DoubleBuffered : True FormBorderStyle : FixedSingle Icon MaximizeBox : False StartPosition : CenterScreen

wauna
Download Presentation

Návrhový vzor FaCTORY A TVORBA HIER

An Image/Link below is provided (as is) to download presentation Download Policy: Content on the Website is provided to you AS IS for your information and personal use and may not be sold / licensed / shared on other websites without getting consent from its author. Content is provided to you AS IS for your information and personal use only. Download presentation by click this link. While downloading, if for some reason you are not able to download a presentation, the publisher may have deleted the file from their server. During download, if you can't get a presentation, the file might be deleted by the publisher.

E N D

Presentation Transcript


  1. Programovací Jazyky II Návrhový vzor FaCTORY A TVORBA HIER

  2. Factory (Továrňa)

  3. Super Mario .NET

  4. Návrh Hry

  5. Návrh Hry

  6. GameWindow - Návrh • BackColor: 107; 140; 255 • DoubleBuffered: True • FormBorderStyle: FixedSingle • Icon • MaximizeBox: False • StartPosition: CenterScreen • Size: 800; 600 • Text: Super Mario .NET

  7. Návrh Hry

  8. EGameAvatarStatus • RightStopped • LeftStopped • RightRunning • LeftRunning • Jumping

  9. GameAvatar • AbstractClass • Images, ImagesIndex, RunningBuffer • Status • X, Y • Draw (Graphics graph) • UpdatePosition (EGameAvatarStatus status) • GameAvatar ( )

  10. Návrh Hry

  11. Mario, Luigi • Sealed Class • Dedia z triedyGameAvatar • Mario ( ), Luigi ( )

  12. Návrh Hry

  13. GameLevel • Abstract Class • abstractvoidDraw(Graphicsgraph)

  14. Návrh Hry

  15. MarioLevel, LuigiLevel • Sealed Class • Dedia z triedyGameLevel • overridevoidDraw(Graphicsgraph)

  16. Návrh Hry

  17. GameFactory • Abstract Class • abstractGameLevelCreateLevel ( ) • abstractGameAvatarCreateAvatar()

  18. Návrh Hry

  19. MarioFactory, LuigiFactory • overrideGameLevelCreateLevel() • overrideGameAvatarCreateAvatar()

  20. GameWindow • GameLevelLevel • GameAvatarAvatar • GameWindow() • voidInitializeLevel(GameFactoryfactory) • void Paint (object sender, PaintEventArgs e) • void KeyDown(objectsender, KeyEventArgs e) • void KeyUp(objectsender, KeyEventArgs e)

More Related