Logo
Classes | Public Member Functions | Public Attributes | Static Public Attributes | List of all members
Yukar.Engine.SpriteManager Class Reference

Management class for displaying sprites and images on 2D surfaces More...

Classes

class  NSpriteSprite
 sprite-based sprites (created with the sprite tool)
 
class  SpriteDef
 Sprite display information
 

Public Member Functions

 SpriteManager ()
 
void Update ()
 
void Draw (int minIndex, int maxIndex)
 
void Draw (int minIndex, int maxIndex, int priority)
 
void Hide (int p)
 
void Unload (int p)
 
void Move (int spIndex, float waitFrame, int x, int y)
 
void Move (int spIndex, int zoom, float waitFrame, Color color)
 
void Move (int spIndex, int zoomX, int zoomY, float waitFrame, Color color)
 
void Move (int spIndex, int zoom, float waitFrame, Color color, int x, int y)
 
void Move (int spIndex, int zoomX, int zoomY, float waitFrame, Color color, int x, int y)
 
bool GetPosition (int idx, out int x, out int y)
 
void ShowRect (int spIndex, int scaleX, int scaleY, Color rectColor, Color color, int x, int y)
 
void ShowText (int spIndex, string p, int x, int y)
 
void ShowText (int spIndex, string p, int zoom, Color color, int textAlign, int textEffect, bool isTelop)
 
void ShowText (int spIndex, string p, int zoom, Color color, int x, int y, int textAlign, int textEffect, bool isTelop)
 
void ShowPicture (int spIndex, Guid guid, int zoomX, int zoomY, Color color, int faceType, Common.Resource.Texture.SpriteOrigin origin=Common.Resource.Texture.SpriteOrigin.CENTER, int rotate=0)
 
void ShowSprite (int spIndex, Guid guid, int zoomX, int zoomY, Color color, string motionName)
 
void ShowSprite (int spIndex, Guid guid, int zoomX, int zoomY, Color color)
 
void ShowPicture (int spIndex, Guid guid, int zoomX, int zoomY, Color color, Common.Rom.Script.Attr type, int x=10000, int y=10000, Common.Resource.Texture.SpriteOrigin origin=Common.Resource.Texture.SpriteOrigin.CENTER, int rotate=0)
 
void Clear ()
 
bool isMoving (int spIndex)
 
Guid GetImageGuid (int p)
 
void GetSpSize (int p, out int spSizeX, out int spSizeY)
 
void GetScale (int p, out int scaleX, out int scaleY)
 
void SetPosition (int idx, int x, int y)
 
bool isVisible (int spIndex)
 
Color GetColor (int spIndex)
 
Vector2 getScale (int spIndex)
 
void SetEffectTargetColor (int spIndex, Color color)
 

Public Attributes

MapScene owner
 
SpriteFaceManager face
 

Static Public Attributes

const int SYSTEM_SPRITE_INDEX = 1000
 
const int TELOP_SPRITE_BG = 1020
 
const int TELOP_SPRITE_TEXT = 1021
 
const int MAX_SPRITE = 1022
 

Detailed Description

Management class for displaying sprites and images on 2D surfaces

Constructor & Destructor Documentation

◆ SpriteManager()

Yukar.Engine.SpriteManager.SpriteManager ( )

Member Function Documentation

◆ Clear()

void Yukar.Engine.SpriteManager.Clear ( )

◆ Draw() [1/2]

void Yukar.Engine.SpriteManager.Draw ( int  minIndex,
int  maxIndex 
)

◆ Draw() [2/2]

void Yukar.Engine.SpriteManager.Draw ( int  minIndex,
int  maxIndex,
int  priority 
)

◆ GetColor()

Color Yukar.Engine.SpriteManager.GetColor ( int  spIndex)

◆ GetImageGuid()

Guid Yukar.Engine.SpriteManager.GetImageGuid ( int  p)

◆ GetPosition()

bool Yukar.Engine.SpriteManager.GetPosition ( int  idx,
out int  x,
out int  y 
)

◆ GetScale()

void Yukar.Engine.SpriteManager.GetScale ( int  p,
out int  scaleX,
out int  scaleY 
)

◆ getScale()

Vector2 Yukar.Engine.SpriteManager.getScale ( int  spIndex)

◆ GetSpSize()

void Yukar.Engine.SpriteManager.GetSpSize ( int  p,
out int  spSizeX,
out int  spSizeY 
)

◆ Hide()

void Yukar.Engine.SpriteManager.Hide ( int  p)

◆ isMoving()

bool Yukar.Engine.SpriteManager.isMoving ( int  spIndex)

◆ isVisible()

bool Yukar.Engine.SpriteManager.isVisible ( int  spIndex)

◆ Move() [1/5]

void Yukar.Engine.SpriteManager.Move ( int  spIndex,
float  waitFrame,
int  x,
int  y 
)

◆ Move() [2/5]

void Yukar.Engine.SpriteManager.Move ( int  spIndex,
int  zoom,
float  waitFrame,
Color  color 
)

◆ Move() [3/5]

void Yukar.Engine.SpriteManager.Move ( int  spIndex,
int  zoom,
float  waitFrame,
Color  color,
int  x,
int  y 
)

◆ Move() [4/5]

void Yukar.Engine.SpriteManager.Move ( int  spIndex,
int  zoomX,
int  zoomY,
float  waitFrame,
Color  color 
)

◆ Move() [5/5]

void Yukar.Engine.SpriteManager.Move ( int  spIndex,
int  zoomX,
int  zoomY,
float  waitFrame,
Color  color,
int  x,
int  y 
)

◆ SetEffectTargetColor()

void Yukar.Engine.SpriteManager.SetEffectTargetColor ( int  spIndex,
Color  color 
)

◆ SetPosition()

void Yukar.Engine.SpriteManager.SetPosition ( int  idx,
int  x,
int  y 
)

◆ ShowPicture() [1/2]

void Yukar.Engine.SpriteManager.ShowPicture ( int  spIndex,
Guid  guid,
int  zoomX,
int  zoomY,
Color  color,
Common.Rom.Script.Attr  type,
int  x = 10000,
int  y = 10000,
Common.Resource.Texture.SpriteOrigin  origin = Common.Resource.Texture.SpriteOrigin.CENTER,
int  rotate = 0 
)

◆ ShowPicture() [2/2]

void Yukar.Engine.SpriteManager.ShowPicture ( int  spIndex,
Guid  guid,
int  zoomX,
int  zoomY,
Color  color,
int  faceType,
Common.Resource.Texture.SpriteOrigin  origin = Common.Resource.Texture.SpriteOrigin.CENTER,
int  rotate = 0 
)

◆ ShowRect()

void Yukar.Engine.SpriteManager.ShowRect ( int  spIndex,
int  scaleX,
int  scaleY,
Color  rectColor,
Color  color,
int  x,
int  y 
)

◆ ShowSprite() [1/2]

void Yukar.Engine.SpriteManager.ShowSprite ( int  spIndex,
Guid  guid,
int  zoomX,
int  zoomY,
Color  color 
)

◆ ShowSprite() [2/2]

void Yukar.Engine.SpriteManager.ShowSprite ( int  spIndex,
Guid  guid,
int  zoomX,
int  zoomY,
Color  color,
string  motionName 
)

◆ ShowText() [1/3]

void Yukar.Engine.SpriteManager.ShowText ( int  spIndex,
string  p,
int  x,
int  y 
)

◆ ShowText() [2/3]

void Yukar.Engine.SpriteManager.ShowText ( int  spIndex,
string  p,
int  zoom,
Color  color,
int  textAlign,
int  textEffect,
bool  isTelop 
)

◆ ShowText() [3/3]

void Yukar.Engine.SpriteManager.ShowText ( int  spIndex,
string  p,
int  zoom,
Color  color,
int  x,
int  y,
int  textAlign,
int  textEffect,
bool  isTelop 
)

◆ Unload()

void Yukar.Engine.SpriteManager.Unload ( int  p)

◆ Update()

void Yukar.Engine.SpriteManager.Update ( )

Member Data Documentation

◆ face

SpriteFaceManager Yukar.Engine.SpriteManager.face

◆ MAX_SPRITE

const int Yukar.Engine.SpriteManager.MAX_SPRITE = 1022
static

◆ owner

MapScene Yukar.Engine.SpriteManager.owner

◆ SYSTEM_SPRITE_INDEX

const int Yukar.Engine.SpriteManager.SYSTEM_SPRITE_INDEX = 1000
static

◆ TELOP_SPRITE_BG

const int Yukar.Engine.SpriteManager.TELOP_SPRITE_BG = 1020
static

◆ TELOP_SPRITE_TEXT

const int Yukar.Engine.SpriteManager.TELOP_SPRITE_TEXT = 1021
static