Register an event that starts after the end of the current one.

delay indicates the time between the end of the current event and the begin of the new one. Use 0.0 if both events should be contiguous and not overlap.

Returns the new event information that can be used in fluent programming.

Property definitions

event_queue $ EventInfo :: add_after
	# Register an event that starts after the end of the current one.
	#
	# `delay` indicates the time between the end of the current event and the begin of the new one.
	# Use 0.0 if both events should be contiguous and not overlap.
	#
	# Returns the new event information that can be used in fluent programming.
	fun add_after(event: E, delay: Float, duration: nullable Float): EventInfo[E]
	do
		return queue.add_at(event, start + self.duration + delay, duration)
	end
lib/event_queue/event_queue.nit:312,2--321,4