C# Class OpenRA.Orders.UnitOrderGenerator

Inheritance: IOrderGenerator
Mostra file Open project: pchote/OpenRA

Public Methods

Method Description
GetCursor ( World world, CPos cell, int2 worldPixel, MouseInput mi ) : string
InputOverridesSelection ( World world, int2 xy, MouseInput mi ) : bool
Order ( World world, CPos cell, int2 worldPixel, MouseInput mi ) : IEnumerable
Render ( WorldRenderer wr, World world ) : IEnumerable
RenderAboveShroud ( WorldRenderer wr, World world ) : IEnumerable
Tick ( World world ) : void

Private Methods

Method Description
CheckSameOrder ( IOrderTargeter iot, Order order ) : Order
OrderForUnit ( Actor self, Target target, List actorsAt, CPos xy, MouseInput mi ) : UnitOrderResult

Returns the most appropriate order for a given actor and target. First priority is given to orders that interact with the given actors. Second priority is given to actors in the given cell.

TargetForInput ( World world, CPos cell, int2 worldPixel, MouseInput mi ) : Target

Method Details

GetCursor() public method

public GetCursor ( World world, CPos cell, int2 worldPixel, MouseInput mi ) : string
world World
cell CPos
worldPixel int2
mi MouseInput
return string

InputOverridesSelection() public method

public InputOverridesSelection ( World world, int2 xy, MouseInput mi ) : bool
world World
xy int2
mi MouseInput
return bool

Order() public method

public Order ( World world, CPos cell, int2 worldPixel, MouseInput mi ) : IEnumerable
world World
cell CPos
worldPixel int2
mi MouseInput
return IEnumerable

Render() public method

public Render ( WorldRenderer wr, World world ) : IEnumerable
wr OpenRA.Graphics.WorldRenderer
world World
return IEnumerable

RenderAboveShroud() public method

public RenderAboveShroud ( WorldRenderer wr, World world ) : IEnumerable
wr OpenRA.Graphics.WorldRenderer
world World
return IEnumerable

Tick() public method

public Tick ( World world ) : void
world World
return void