C# Class ConveyorDefence.Nodes.Node

Show file Open project: markevich/ConveyorDefence-linux Class Usage Examples

Public Properties

Property Type Description
LeftDownTileID int
RightDownTileID int

Protected Properties

Property Type Description
OutputsCount int
TimeSinseLastProcess float
_missiles List

Private Properties

Property Type Description
GetCurrentMissile ConveyorDefence.Missiles.Missile
NextNodeExists bool

Public Methods

Method Description
Draw ( SpriteBatch batch ) : void
Input ( Missile missile ) : void
Node ( float outputCooldown ) : System
Node ( float outputCooldown, int leftDownTileID, int rightDownTileID, NodeDirection direction, InputStrategy inputStrategy, ProcessStrategy processStrategy, OutputStrategy outputStrategy ) : System
Update ( GameTime gameTime ) : void

Protected Methods

Method Description
HasNodeDatas ( ) : bool
Output ( ) : void
Process ( ) : void

Private Methods

Method Description
GetCurrentMissile ( ) : Missile
NextNodeExists ( ) : bool

Method Details

Draw() public method

public Draw ( SpriteBatch batch ) : void
batch Microsoft.Xna.Framework.Graphics.SpriteBatch
return void

HasNodeDatas() protected method

protected HasNodeDatas ( ) : bool
return bool

Input() public method

public Input ( Missile missile ) : void
missile ConveyorDefence.Missiles.Missile
return void

Node() public method

public Node ( float outputCooldown ) : System
outputCooldown float
return System

Node() public method

public Node ( float outputCooldown, int leftDownTileID, int rightDownTileID, NodeDirection direction, InputStrategy inputStrategy, ProcessStrategy processStrategy, OutputStrategy outputStrategy ) : System
outputCooldown float
leftDownTileID int
rightDownTileID int
direction NodeDirection
inputStrategy ConveyorDefence.Nodes.Strategies.InputStrategy
processStrategy ConveyorDefence.Nodes.Strategies.ProcessStrategy
outputStrategy ConveyorDefence.Nodes.Strategies.OutputStrategy
return System

Output() protected method

protected Output ( ) : void
return void

Process() protected method

protected Process ( ) : void
return void

Update() public method

public Update ( GameTime gameTime ) : void
gameTime Microsoft.Xna.Framework.GameTime
return void

Property Details

LeftDownTileID public property

public int LeftDownTileID
return int

OutputsCount protected property

protected int OutputsCount
return int

RightDownTileID public property

public int RightDownTileID
return int

TimeSinseLastProcess protected property

protected float TimeSinseLastProcess
return float

_missiles protected property

protected List _missiles
return List