0% found this document useful (0 votes)
254 views2 pages

Position Maze: +getposition :dime Nsion +checkobstacle :B Oolean

This document defines the classes and methods for a Pacman game including Pacman, Monsters, Maze, Score, Pac-Dot, Fruit, and Edible objects. The classes describe the properties and behaviors of each game element such as Pacman's name, score, and life and methods for moving, eating, and checking obstacles. The Maze class generates the maze from data and provides the maze layout. The PacmanGame class coordinates the different game elements by containing references to the maze, player, enemies, and handling starting, restarting, and exiting the game.

Uploaded by

NumanAbdullah
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
254 views2 pages

Position Maze: +getposition :dime Nsion +checkobstacle :B Oolean

This document defines the classes and methods for a Pacman game including Pacman, Monsters, Maze, Score, Pac-Dot, Fruit, and Edible objects. The classes describe the properties and behaviors of each game element such as Pacman's name, score, and life and methods for moving, eating, and checking obstacles. The Maze class generates the maze from data and provides the maze layout. The PacmanGame class coordinates the different game elements by containing references to the maze, player, enemies, and handling starting, restarting, and exiting the game.

Uploaded by

NumanAbdullah
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd
You are on page 1/ 2

Position

+getPosition():dime
nsion
+checkObstacle():b
oolean
PACMAN
+name:string
+score:Score
+life:number
Move():void
Eat():void
getDetail():String
+getPosition():di
mension
+checkObstacle(
):boolean
Score
score:integer
bonus:integer
+calScore():integ
er
+addBonus():int
eger

Maze
horPass:integer
vertPass:integer
generate(data:st
ring[][]):void
Monster
getMazeData():st
+name:string
ring[][]
+color:string
position:dimensi
on
Move():void
isEdible():Boolea
PACMAN GAME
maze:Maze
n
player:Pacman
+getPosition():di
enemies:Monster
mension
s
+checkObstacle(
Start():void
):boolean
Restart():void
ClearHS():void
Exit():void
Edible
description:string
points:integer
Pac-Dot
generate():void
clear():void
Generate():void
+getPosition():di
Clear():void
mension
+checkObstacle(
):boolean

Fruit
#time:integer
Generate():void
Clear():void

You might also like