NAME

Game::Object::Prize - Prize

SYNOPSIS

Nah...

PROPERTIES

value

How much to win when getting the Prize.

Default: 0

isBlocking

Whether the object blocks other objects, i.e. whether they can crash on this object.

Default: 0

METHODS

new($oLocation, $value)

Create new Prize, located at Location, with a $value.

wasCrashedIntoBy($oObject)

This object was chrashed into by $oObject.

If possible, award the value() to $oObject.

If possible, notify the oLawn() that this Prize is claimed.

Return 1 on success, else 0.