C# Class SmashBros.Models.ImageModel

Show file Open project: Grutn/TDT4240-X2 Class Usage Examples

Public Properties

Property Type Description
Callback Action
CurrentFrame int
CurrentPos Vector2
CurrentRotation float
CurrentScale float
FPS int
Offset Vector2
Origin Vector2
SpriteEffect SpriteEffects

Public Methods

Method Description
ImageModel ( Vector2 pos, float scale = 1f ) : System

Private Methods

Method Description
BoundBoxDimension ( World world, int width, int height, Vector2 offset ) : void
DisposBoundBox ( ) : void
SetBoundBox ( World World, int width, int height, Vector2 offset, Category category = Category.None, Category collidesWith = Category.None, bool isStatic = false ) : void

Method Details

ImageModel() public method

public ImageModel ( Vector2 pos, float scale = 1f ) : System
pos Vector2
scale float
return System

Property Details

Callback public property

Callback that is run every time the animation reaches a end point event if loop
public Action Callback
return Action

CurrentFrame public property

params for frame animation
public int CurrentFrame
return int

CurrentPos public property

Positions for model
public Vector2 CurrentPos
return Vector2

CurrentRotation public property

Rotation
public float CurrentRotation
return float

CurrentScale public property

Scales used for model
public float CurrentScale
return float

FPS public property

Frames pr second for this istances if it runs frame animation
public int FPS
return int

Offset public property

public Vector2 Offset
return Vector2

Origin public property

Origin of target
public Vector2 Origin
return Vector2

SpriteEffect public property

public SpriteEffects SpriteEffect
return SpriteEffects