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

Class for automatically moving MapCharacter according to specification More...

Inherited by Yukar.Engine.MapCharacterMoveMacro.SimpleXZTweener, Yukar.Engine.MapCharacterMoveMacro.XZTweener, and Yukar.Engine.MapCharacterMoveMacro.YTweener.

Classes

class  SimpleXZTweener
 XZ movement Tweener of the type that does not match the height (does not rely on physics)
 
class  XZTweener
 A class that moves the character to the desired XZ coordinates while interpolating the coordinates
 
class  YTweener
 A class that moves the height of the character while interpolating
 

Public Types

enum  UsingEasingFunction { Linear = 0 , EaseIn = 1 , EaseOut = 2 }
 the type of easing function to use More...
 

Static Public Member Functions

static MapCharacterMoveMacro addYTweener (MapCharacter character, float time, float startY, float targetY, UsingEasingFunction easingMethod, bool toGround, bool checkCollision)
 
static MapCharacterMoveMacro addSimpleXZTweener (MapCharacter chr, int dir, float speed, Action finishHandler=null)
 
static MapCharacterMoveMacro addXZTweener (MapCharacter chr, int dir, bool shouldKeepMotion, bool fixDir, MapData drawer)
 
static MapCharacterMoveMacro addXZTweener (MapCharacter chr, float x, float y, MapData drawer, Action finishHandler=null)
 
static MapCharacterMoveMacro addXZTweener (MapCharacter self, MapCharacter chr, int dir, bool fixDir, bool abortOnFail, bool through, bool ignoreHeight, bool shouldKeepMotion, float targetDirRad, float totalWalk, bool interpolate, float startDirRad, bool fourDir)
 

Detailed Description

Class for automatically moving MapCharacter according to specification

Member Enumeration Documentation

◆ UsingEasingFunction

the type of easing function to use

Enumerator
Linear 

Constant velocity

EaseIn 

acceleration

EaseOut 

deceleration

Member Function Documentation

◆ addSimpleXZTweener()

static MapCharacterMoveMacro Yukar.Engine.MapCharacterMoveMacro.addSimpleXZTweener ( MapCharacter  chr,
int  dir,
float  speed,
Action  finishHandler = null 
)
static

◆ addXZTweener() [1/3]

static MapCharacterMoveMacro Yukar.Engine.MapCharacterMoveMacro.addXZTweener ( MapCharacter  chr,
float  x,
float  y,
MapData  drawer,
Action  finishHandler = null 
)
static

◆ addXZTweener() [2/3]

static MapCharacterMoveMacro Yukar.Engine.MapCharacterMoveMacro.addXZTweener ( MapCharacter  chr,
int  dir,
bool  shouldKeepMotion,
bool  fixDir,
MapData  drawer 
)
static

◆ addXZTweener() [3/3]

static MapCharacterMoveMacro Yukar.Engine.MapCharacterMoveMacro.addXZTweener ( MapCharacter  self,
MapCharacter  chr,
int  dir,
bool  fixDir,
bool  abortOnFail,
bool  through,
bool  ignoreHeight,
bool  shouldKeepMotion,
float  targetDirRad,
float  totalWalk,
bool  interpolate,
float  startDirRad,
bool  fourDir 
)
static

◆ addYTweener()

static MapCharacterMoveMacro Yukar.Engine.MapCharacterMoveMacro.addYTweener ( MapCharacter  character,
float  time,
float  startY,
float  targetY,
UsingEasingFunction  easingMethod,
bool  toGround,
bool  checkCollision 
)
static