1 / 6

CSC 480 – Software Engineering

CSC 480 – Software Engineering. Workshops 5 & 6 Design Patterns. Make Parts (components ) into a Unit ( composite). Client. Composite pattern. Hide Parts Using a Façade ( MyGameTank ). Client. Façade pattern. Decouple Client w/ Concrete Tank. Abs. Factory pattern.

rehan
Télécharger la présentation

CSC 480 – Software Engineering

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. CSC 480 – Software Engineering Workshops 5 & 6 Design Patterns

  2. Make Parts(components) into a Unit (composite) Client Composite pattern

  3. Hide Parts Using a Façade(MyGameTank) Client Façade pattern

  4. Decouple Client w/ Concrete Tank Abs. Factory pattern

  5. Adding a New Tank Type w/ Ease E1T1TankFactory +createTank():E1T1Tank +createShell():E1T1TankShell E1T1Tank E1T1TankShell

  6. Handling User Input w/ KeyListener Command pattern A hook method in the Java AWT API <<interface>> KeyListener +keyPressed(e:KeyEvent) +keyReleased(e:KeyEvent) +keyTyped(e:KeyEvent) MyGameFrame KeyHandler AbstractTank MyGamePanel +keyPressed(e:KeyEvent) +keyReleased(e:KeyEvent) +keyTyped(e:KeyEvent)

More Related