| Package | org.ffilmation.engine.events |
| Class | public class fShotEvent |
| Inheritance | fShotEvent 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| Property | Defined 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 | ||
| Method | Defined by | ||
|---|---|---|---|
|
Constructor for the fShotEvent class.
| fShotEvent | ||
| bullet | property |
public var bullet:fBulletThe bullet
| coordinate | property |
public var coordinate:fPoint3dCoordinate of impact, in scene coordinates
| element | property |
public var element:fRenderableElementThe element of the scene that gets shot
| fShotEvent | () | constructor |
public function fShotEvent(type:String, bullet:fBullet, element:fRenderableElement, coordinate:fPoint3d)Constructor for the fShotEvent class.
Parameterstype: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 |