Métodos de Busca no Pacman
Public Member Functions | Public Attributes | List of all members
graphicsDisplay.PacmanGraphics Class Reference
Inheritance diagram for graphicsDisplay.PacmanGraphics:
graphicsDisplay.FirstPersonPacmanGraphics

Public Member Functions

def __init__ (self, zoom=1.0, frameTime=0.0, capture=False)
 
def initialize (self, state, isBlue=False)
 
def startGraphics (self, state)
 
def drawDistributions (self, state)
 
def drawStaticObjects (self, state)
 
def drawAgentObjects (self, state)
 
def swapImages (self, agentIndex, newState)
 
def update (self, newState)
 
def make_window (self, width, height)
 
def drawPacman (self, pacman, index)
 
def getEndpoints (self, direction, position=(0, 0))
 
def movePacman (self, position, direction, image)
 
def animatePacman (self, pacman, prevPacman, image)
 
def getGhostColor (self, ghost, ghostIndex)
 
def drawGhost (self, ghost, agentIndex)
 
def moveEyes (self, pos, dir, eyes)
 
def moveGhost (self, ghost, ghostIndex, prevGhost, ghostImageParts)
 
def getPosition (self, agentState)
 
def getDirection (self, agentState)
 
def finish (self)
 
def to_screen (self, point)
 
def to_screen2 (self, point)
 
def drawWalls (self, wallMatrix)
 
def isWall (self, x, y, walls)
 
def drawFood (self, foodMatrix)
 
def drawCapsules (self, capsules)
 
def removeFood (self, cell, foodImages)
 
def removeCapsule (self, cell, capsuleImages)
 
def drawExpandedCells (self, cells)
 
def clearExpandedCells (self)
 
def updateDistributions (self, distributions)
 

Public Attributes

 have_window
 
 currentGhostImages
 
 pacmanImage
 
 zoom
 
 gridSize
 
 capture
 
 frameTime
 
 isBlue
 
 distributionImages
 
 previousState
 
 layout
 
 width
 
 height
 
 infoPane
 
 currentState
 
 food
 
 capsules
 
 agentImages
 
 expandedCells
 

Member Function Documentation

◆ drawExpandedCells()

def graphicsDisplay.PacmanGraphics.drawExpandedCells (   self,
  cells 
)
Draws an overlay of expanded grid positions for search agents

◆ swapImages()

def graphicsDisplay.PacmanGraphics.swapImages (   self,
  agentIndex,
  newState 
)
  Changes an image from a ghost to a pacman or vis versa (for capture)

The documentation for this class was generated from the following file: