130 likes | 281 Views
Angela DiCicco 9/20/05. Fish Eats/Grows. Fish. Scene. energy level Scene position (x,y) size of fish food intake (digestion). (x,y) coordinates/ boundaries (background, foreground). Located in. Contains. eats. Energy increased. Located in. Food. Fish World. position (x,y) Scene
E N D
Angela DiCicco 9/20/05 Fish Eats/Grows Fish Scene energy level Scene position (x,y) size of fish food intake (digestion) (x,y) coordinates/ boundaries (background, foreground) Located in Contains eats Energy increased Located in Food Fish World position (x,y) Scene amount of pellets Scene[ ]
Angela DiCicco 9/21/05 Fish Fight Fish Scene energy level Scene position (x,y) size of fish food intake (digestion) fight() (x,y) coordinates/ boundaries (background, foreground) Located in Contains Fish World Scene[ ] Fights
Angela DiCicco 9/21/05 Fish Dies Fish Scene energy level Scene position (x,y) size of fish Food intake (digestion) Fight() (x,y) coordinates/ boundaries (background, foreground) Located in Informs of death Loss of Energy Potential Death Contains encounters Located in Hazards Fish World position (x,y) Scene Randomized outcomes Scene[ ] {Fish death also occurs when fish eaten by other fish, certain hazards cause immediate death, or when there is a loss of all energy (caused by fights, hazards, or timer)}
Angela DiCicco 9/21/05 Fish Loses Energy Fish Scene energy level Scene position (x,y) size of fish food intake (digestion) Fight() (x,y) coordinates/ boundaries (background, foreground) Located in Loss of Energy Contains encounters Located in Hazards Fish World position (x,y) Scene Randomized outcomes Scene[ ] {Energy loss is also caused by timer class (utility), and by fish fights}
Jamie Howard Bottom-Dwellers eat Bottom-Dwellers Food eats Position (x,y)Scene position (x,y) Scene amount of pellets Located in Fishworld Scene SceneNum Located in Contains SceneNum
User Navigates Fish Fish Position (x,y)Scenedirection Contains Requests draw Scene Changes direction Foregreoundbackground Contains Fishworld SceneNum Direction(key) Requestsdraw
Abstract View Abstractview Fishworld Contains EnergyLevel Size World SceneNum EnergyLevel Size World display Request information ( position, scene, size, energy level) Fish Request information ( position, scene, size, energy level) position, scene, size, energy leveldirection
U s e r l o g s o n FishWorld Nickname[ ] Fish[] Scene[] or scene[] [] Abstract view Prompt for name, Password, Fish selection Felix Rosen
G a m e S t a r t s Hazard BottmoDweller {Hazards are created after game start} Pos (x,y) SceNumber Pos (x,y) SceNumber Creates, positions Creates, positions Fish Assign image set Energy level Scene Pos (x,y) Color FishWorld Assign position Fish[] Scene[] or scene[] [] AbstractView Creates Located Scene Creates, Draws Contaiins SceNumber Foregroundbackground Felix Rosen
F i s h e n c o u n t e r s h a z a r d Fish Hazard Swim into Energy level Scene Pos (x,y) Scene Pos (x,y) Damage level** Damage Located Located FishWorld Scene SceNumber Contains ** How much damage the hazard will cause on the fish Felix Rosen
P l a y e r w i n s g a m e Fish Fish FishWorldGame Communicate status of game Energy level Scene Pos (x,y) Color Color[] NrOfPlayers PlayersLeft TimeLeft Communicate fish dies Felix Rosen
Automated Fish Fish World Food Scene Fish Energy levelPosition (x,y)Scene Number Position (x,y)Scene Number Energy levelPosition (x,y)Scene Number Scene Number Nate Baechtold Automated Fish Navigates Updates scenes Inquire fish position/size draws itself Contains Inquire fish/food position, size draws Inquire position
Fish World Fish Scene Food Energy levelPosition (x,y)Scene Number IncreaseEnergy(int) Scene Number Scene Number Nate Baechtold Automated Fish Eats {inherit this behavior from fish} Eats Increases Energy Located in Located in Contains