C# Class Hevadea.Systems.MovementSystem.Extension

Show file Open project: sleepy-monax/hevadea-monogame

Public Methods

Method Description
IsMoving ( Entity e ) : bool
Move ( Entity e, float sx, float sy ) : void
MoveTo ( Entity e, Coordinates coords, float speed ) : void
MoveTo ( Entity e, float x, float y ) : void

Private Methods

Method Description
CheckColision ( Entity e, Level l, RectangleF hb, float &ox, float &oy ) : void

Method Details

IsMoving() public static method

public static IsMoving ( Entity e ) : bool
e Entity
return bool

Move() public static method

public static Move ( Entity e, float sx, float sy ) : void
e Entity
sx float
sy float
return void

MoveTo() public static method

public static MoveTo ( Entity e, Coordinates coords, float speed ) : void
e Entity
coords Coordinates
speed float
return void

MoveTo() public static method

public static MoveTo ( Entity e, float x, float y ) : void
e Entity
x float
y float
return void