C# Class SmashBros.Models.ImageModel

显示文件 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_oe property

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

CurrentFrame public_oe property

params for frame animation
public int CurrentFrame
return int

CurrentPos public_oe property

Positions for model
public Vector2 CurrentPos
return Vector2

CurrentRotation public_oe property

Rotation
public float CurrentRotation
return float

CurrentScale public_oe property

Scales used for model
public float CurrentScale
return float

FPS public_oe property

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

Offset public_oe property

public Vector2 Offset
return Vector2

Origin public_oe property

Origin of target
public Vector2 Origin
return Vector2

SpriteEffect public_oe property

public SpriteEffects SpriteEffect
return SpriteEffects