NAME
Game::ObjectVisible - General Object that can be on a Lawn.
SYNOPSIS
Nah...
PROPERTIES
oLocation
Game::Location object.
Default: (11, 12)
oLawn
Game::Lawn object, if the Prize is placed on one.
Default: undef
raBodyLocation
Array ref with hash refs (keys: top, left) that is the body locations relative to the head.
Default: []
raBodyChar
Array ref with chars to use for displaying the body.
Default: []
isBlocking
Whether the object blocks other objects, i.e. whether they can crash on this object.
Default: 1
color
What color this object has. This may influence the rendering of it on screen.
Default: "gray"
METHODS
new($oLocation)
Create new Object, located at Location.
_buildBodyRight($length, $oLocation, $rcChar)
Build the Object body (raBodyLocation and raBodychar), starting at $oLocation, going $length steps to the right. Each body char is the return value from calling $rcChar->().
Return 1 on success, else 0.