C# Class OpenRA.Traits.ScreenShaker

Inheritance: ITick, IWorldLoaded
Show file Open project: pchote/OpenRA

Public Methods

Method Description
AddEffect ( int time, WPos position, int intensity ) : void
AddEffect ( int time, WPos position, int intensity, float2 multiplier ) : void
ScreenShaker ( ScreenShakerInfo info ) : System
Tick ( Actor self ) : void
WorldLoaded ( World w, WorldRenderer wr ) : void

Private Methods

Method Description
GetIntensity ( ) : float
GetMultiplier ( ) : float2
GetScrollOffset ( ) : float2

Method Details

AddEffect() public method

public AddEffect ( int time, WPos position, int intensity ) : void
time int
position WPos
intensity int
return void

AddEffect() public method

public AddEffect ( int time, WPos position, int intensity, float2 multiplier ) : void
time int
position WPos
intensity int
multiplier float2
return void

ScreenShaker() public method

public ScreenShaker ( ScreenShakerInfo info ) : System
info ScreenShakerInfo
return System

Tick() public method

public Tick ( Actor self ) : void
self Actor
return void

WorldLoaded() public method

public WorldLoaded ( World w, WorldRenderer wr ) : void
w World
wr OpenRA.Graphics.WorldRenderer
return void