Class Rubygame::EventTriggers::InstanceOfTrigger
In: lib/rubygame/event_triggers.rb
lib/rubygame/event_triggers.rb
Parent: Object

InstanceOfTrigger is an event trigger which fires when the event is an instance of the given class. (In other words, when event.instance_of?( klass ) is true.)

Contrast with KindOfTrigger.

Methods

match?   match?   new   new  

Public Class methods

Initialize a new instance of InstanceOfTrigger with the given class.

klass:The class to check for. (Class, required)

Initialize a new instance of InstanceOfTrigger with the given class.

klass:The class to check for. (Class, required)

Public Instance methods

Returns true if the event is an instance of the class.

Returns true if the event is an instance of the class.

[Validate]