Directing drawing class with sound and shake using sprites More...
Classes | |
class | Image |
loaded texture | |
class | NodeState |
State by layer More... | |
Public Member Functions | |
EffectDrawer () | |
EffectDrawer (NSprite inSprite, Common.Catalog inCatalog) | |
override void | load (Common.Rom.RomItem rom, Common.Catalog catalog) |
override void | initialize () |
void | initializeSpecificLayer (int layer) |
bool | isEndPlayingSpecificLayer (int layer) |
void | initialize (bool withoutExLayer) |
void | setTemporaryVisibility (IEnumerable< NSprite.LayerSettings.LayerState > layerStatus) |
override void | finalize () |
override void | update (bool playSE=true, float elapsed=-1) |
void | setScale (float nowScaleX, float nowScaleY) |
void | draw (int targetX, int targetY, bool withFlash, Action drawAction, int drawActionIndex, Color? color) |
void | applyMaskForUi (int targetX, int targetY, bool withFlash, Action< Action< Vector2 > > drawAction) |
override void | draw (SharpKmyMath.Matrix4 pp, SharpKmyMath.Matrix4 vv) |
override void | draw (int targetX, int targetY, bool withFlash=true) |
void | draw (Vector2 position, Action drawAction, int drawIndex) |
void | draw (Vector2 position, Action drawAction, int drawIndex, Color color) |
void | applyMaskForUi (Vector2 position, Action< Action< Vector2 > > drawAction) |
override void | drawFlash () |
override Color | getNowTargetColor () |
List< NodeState > | getAvailableNodePosList () |
override bool | isSameRom (Guid guid) |
void | drawImageRect (int index, int targetX, int targetY, byte r, byte g, byte b, byte a, bool drawLine=true, bool drawMaskPreview=true) |
Tuple< Vector2, Vector2 > | GetImageSizeAndPosition (int targetX, int targetY) |
Public Member Functions inherited from Yukar.Engine.EffectDrawerBase | |
virtual void | load (Common.Rom.RomItem rom, Common.Catalog catalog) |
abstract void | initialize () |
abstract void | finalize () |
abstract void | update (bool playSE=true, float elapsed=-1) |
virtual void | draw (int targetX, int targetY, bool withFlash=true) |
abstract void | draw (SharpKmyMath.Matrix4 pp, SharpKmyMath.Matrix4 vv) |
abstract void | drawFlash () |
abstract Color | getNowTargetColor () |
abstract bool | isSameRom (Guid guid) |
virtual bool | drawFor3D (MapCharacter src, MapCharacter dest, int totalCount, float yangle) |
Static Public Member Functions | |
static float | GetInterpolatedValue (NSprite.InterpolateType interpolate, float cur, float max) |
Static Public Member Functions inherited from Yukar.Engine.EffectDrawerBase | |
static EffectDrawerBase | createAndLoad (Common.Rom.RomItem effect, Catalog catalog, MapCharacter mapChr=null) |
Public Attributes | |
NSprite | sprite |
MapScene.EffectPosType | posType |
float | nowFrame |
Dictionary< int, float > | exNowFrame = new Dictionary<int, float>() |
Dictionary< int, float > | exLastFrame = new Dictionary<int, float>() |
Dictionary< int, float > | exSpeed = new Dictionary<int, float>() |
bool | isEditMode |
bool | isInLayout |
int | progressState |
Public Attributes inherited from Yukar.Engine.EffectDrawerBase | |
Common.Rom.RomItem | effect |
MapCharacter | mapChr |
Properties | |
bool | CalcBounds [get, set] |
Rectangle | Bounds [get] |
override NSprite.OrigPos | origPos [get] |
List< NSprite.NodeDef > | NodeList [get] |
List< NSprite.NodeDef > | NodeDrawList [get] |
List< Common.Resource.Texture > | Textures [get] |
Properties inherited from Yukar.Engine.EffectDrawerBase | |
bool | isEndPlaying = true [get, set] |
bool | isOverDamageTime = true [get, set] |
bool | isEndPlayingOrOverDamageTime [get] |
virtual NSprite.OrigPos | origPos [get] |
Directing drawing class with sound and shake using sprites
Yukar.Engine.EffectDrawer.EffectDrawer | ( | ) |
Yukar.Engine.EffectDrawer.EffectDrawer | ( | NSprite | inSprite, |
Common.Catalog | inCatalog | ||
) |
void Yukar.Engine.EffectDrawer.applyMaskForUi | ( | int | targetX, |
int | targetY, | ||
bool | withFlash, | ||
Action< Action< Vector2 > > | drawAction | ||
) |
void Yukar.Engine.EffectDrawer.applyMaskForUi | ( | Vector2 | position, |
Action< Action< Vector2 > > | drawAction | ||
) |
void Yukar.Engine.EffectDrawer.draw | ( | int | targetX, |
int | targetY, | ||
bool | withFlash, | ||
Action | drawAction, | ||
int | drawActionIndex, | ||
Color? | color | ||
) |
|
virtual |
Reimplemented from Yukar.Engine.EffectDrawerBase.
|
virtual |
Implements Yukar.Engine.EffectDrawerBase.
void Yukar.Engine.EffectDrawer.draw | ( | Vector2 | position, |
Action | drawAction, | ||
int | drawIndex | ||
) |
void Yukar.Engine.EffectDrawer.draw | ( | Vector2 | position, |
Action | drawAction, | ||
int | drawIndex, | ||
Color | color | ||
) |
|
virtual |
Implements Yukar.Engine.EffectDrawerBase.
void Yukar.Engine.EffectDrawer.drawImageRect | ( | int | index, |
int | targetX, | ||
int | targetY, | ||
byte | r, | ||
byte | g, | ||
byte | b, | ||
byte | a, | ||
bool | drawLine = true , |
||
bool | drawMaskPreview = true |
||
) |
|
virtual |
Implements Yukar.Engine.EffectDrawerBase.
List< NodeState > Yukar.Engine.EffectDrawer.getAvailableNodePosList | ( | ) |
Tuple< Vector2, Vector2 > Yukar.Engine.EffectDrawer.GetImageSizeAndPosition | ( | int | targetX, |
int | targetY | ||
) |
|
static |
|
virtual |
Implements Yukar.Engine.EffectDrawerBase.
|
virtual |
Implements Yukar.Engine.EffectDrawerBase.
void Yukar.Engine.EffectDrawer.initialize | ( | bool | withoutExLayer | ) |
void Yukar.Engine.EffectDrawer.initializeSpecificLayer | ( | int | layer | ) |
bool Yukar.Engine.EffectDrawer.isEndPlayingSpecificLayer | ( | int | layer | ) |
|
virtual |
Implements Yukar.Engine.EffectDrawerBase.
override void Yukar.Engine.EffectDrawer.load | ( | Common.Rom.RomItem | rom, |
Common.Catalog | catalog | ||
) |
void Yukar.Engine.EffectDrawer.setScale | ( | float | nowScaleX, |
float | nowScaleY | ||
) |
void Yukar.Engine.EffectDrawer.setTemporaryVisibility | ( | IEnumerable< NSprite.LayerSettings.LayerState > | layerStatus | ) |
|
virtual |
Implements Yukar.Engine.EffectDrawerBase.
Dictionary<int, float> Yukar.Engine.EffectDrawer.exLastFrame = new Dictionary<int, float>() |
Dictionary<int, float> Yukar.Engine.EffectDrawer.exNowFrame = new Dictionary<int, float>() |
Dictionary<int, float> Yukar.Engine.EffectDrawer.exSpeed = new Dictionary<int, float>() |
bool Yukar.Engine.EffectDrawer.isEditMode |
bool Yukar.Engine.EffectDrawer.isInLayout |
float Yukar.Engine.EffectDrawer.nowFrame |
MapScene.EffectPosType Yukar.Engine.EffectDrawer.posType |
int Yukar.Engine.EffectDrawer.progressState |
NSprite Yukar.Engine.EffectDrawer.sprite |
|
get |
|
getset |
|
get |
|
get |
|
get |
|
get |