Packageorg.ffilmation.engine.events
Classpublic class fShotEvent
InheritancefShotEvent Inheritance flash.events.Event

The fShotEvent event class stores information about a shot event. This event is dispatched when a bullet collides with an element in the scene. Both the bullet and the element will dispatch the event, so you can capture it where it suits you the most.

If the element is solid, the event will have a fBullet.SHOT type. If it isn't the vent will be of type fBullet.SHOT_THROUGH



Public Properties
 PropertyDefined by
  bullet : fBullet
The bullet
fShotEvent
  coordinate : fPoint3d
Coordinate of impact, in scene coordinates
fShotEvent
  element : fRenderableElement
The element of the scene that gets shot
fShotEvent
Public Methods
 MethodDefined by
  
fShotEvent(type:String, bullet:fBullet, element:fRenderableElement, coordinate:fPoint3d)
Constructor for the fShotEvent class.
fShotEvent
Property detail
bulletproperty
public var bullet:fBullet

The bullet

coordinateproperty 
public var coordinate:fPoint3d

Coordinate of impact, in scene coordinates

elementproperty 
public var element:fRenderableElement

The element of the scene that gets shot

Constructor detail
fShotEvent()constructor
public function fShotEvent(type:String, bullet:fBullet, element:fRenderableElement, coordinate:fPoint3d)

Constructor for the fShotEvent class.

Parameters
type:String — The type of the event. Event listeners can access this information through the inherited type property.
 
bullet:fBullet — The bullet that shot the element.
 
element:fRenderableElement — The element of the scene that was shot.
 
coordinate:fPoint3d