NAME

Game::Event::Timed - Time events

SYNOPSIS

Nah...

PROPERTIES

timeNextTick

The time the next tick should occur, or undef if no tick should occur.

Default: undef

timeInterval

The time between ticks, or undef if there is no interval

When set, it doesn't reset the current timeNextTick, it is used after the _next_ tick.

Default: undef

if(@_) {
    $self->{timeInterval} = $_[0];
    if(defined( $self->{timeInterval} )) {
        $self->timeNextTick( time() + $self->{timeInterval} );
        }
    else {
        $self->timeNextTick(undef);
        }
    }

return($self->{timeInterval});
}

METHODS

new([$interval])

Create new timed object.

checkTick($timeWorld)

Check if a tick is due.

Return 1 if a tick was due, else 0.

1 POD Error

The following errors were encountered while parsing the POD:

Around line 56:

=pod directives shouldn't be over one line long! Ignoring all 2 lines of content