Object Oriented Design - PowerPoint PPT Presentation

About This Presentation
Title:

Object Oriented Design

Description:

Used Illustrator for graphics - clipboard copy and paste to Powerpoint – PowerPoint PPT presentation

Number of Views:114
Avg rating:3.0/5.0
Slides: 13
Provided by: Owen60
Category:
Tags: design | eats | object | oriented | what | world

less

Transcript and Presenter's Notes

Title: Object Oriented Design


1
Object Oriented Design
2
Goals
  • Pacman Project Reflections
  • The Sims Project additional pointers

3
Classes
  • Pacman
  • Ghost
  • Dot
  • Power pill
  • Maze
  • Fruit
  • Score

4
On state diagrams
  • Naming of states much better!
  • Transitions
  • Need labels!
  • Labels Event Guard / Action
  • If multiple objects are involved event needs to
    describe
  • who is involved
  • what happens to whom
  • Describe Event not Method

Ghost states
attacking
Not clear who is involved
eat
fleeing
5
Ghost state diagram
attacking
Pacman eats power pill
Power Pill effect is gone (2 secs)
Ghost reaches home
Returning to ghost home
Pacman eats ghost
Pacman eats ghost
Power Pill effect fades away (10 secs)
fleeing blinking
6
Sequence diagrams
  • Keep general flow left to right
  • What makes the ghost go right?

Pacman
Ghost
Ghost
Pacman
kill
kill
Ok, but not recommended
Good
7
The Sims
8
Collaborative Diffusion Search
  • Can be used to build simulations including object
    interactions even more complex than that found in
    the Sims

9
Getting started
  • Look at existing AgentSheets projects
  • Ultimate Pacman
  • World Cup

10
Diffusion Difference Equations
  • Simple (k0.25)
  • u 0.25 (uleft uright uup
    udown)
  • General
  • u _at_k (uleft uright uup udown
    - 4 u) u
  • Where k is
  • The diffusion coefficient
  • Should be lt 0.45

11
Debugging diffusion
  • 3D Plot is only available in research prototype
  • Use colorization

12
Wanted
  • We need one person who would help building an
    infrastructure (counts as final project).
  • Who knows
  • Java and OpenGL
  • Java
  • OpenGL
Write a Comment
User Comments (0)
About PowerShow.com