Logo
クラス | 公開型 | 静的公開メンバ関数 | 全メンバ一覧
Yukar.Engine.MapCharacterMoveMacro クラス

MapCharacterを指定に従って自動的に動かすためのクラス [詳解]

Yukar.Engine.MapCharacterMoveMacro.SimpleXZTweener, Yukar.Engine.MapCharacterMoveMacro.XZTweener, Yukar.Engine.MapCharacterMoveMacro.YTweenerに継承されています。

クラス

class  SimpleXZTweener
 高さを合わせない(物理を当てにしない)タイプのXZ移動Tweener
 
class  XZTweener
 座標を補間しながら目的のXZ座標までキャラクターを移動させるクラス
 
class  YTweener
 補間しながらキャラクターの高さを移動させるクラス
 

公開型

enum  UsingEasingFunction { Linear = 0 , EaseIn = 1 , EaseOut = 2 }
 使用するイージング関数の種類 [詳解]
 

静的公開メンバ関数

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)
 XZ方向への移動タスクを追加する(指定方向に1歩歩く) [詳解]
 
static MapCharacterMoveMacro addXZTweener (MapCharacter chr, float x, float y, MapData drawer, Action finishHandler=null)
 XZ方向への移動タスクを追加する(XZ別々に移動する距離を指定するタイプ) [詳解]
 
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)
 XZ方向への移動タスクを追加する(向きと歩数を指定するタイプ) [詳解]
 

詳解

MapCharacterを指定に従って自動的に動かすためのクラス

列挙型メンバ詳解

◆ UsingEasingFunction

使用するイージング関数の種類

列挙値
Linear 

等速

EaseIn 

加速

EaseOut 

減速

メソッド詳解

◆ 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

XZ方向への移動タスクを追加する(XZ別々に移動する距離を指定するタイプ)

引数
chr移動させるキャラ
xX方向の移動量
yY方向の移動量
drawerマップデータ
finishHandler完了ハンドラ
戻り値

◆ addXZTweener() [2/3]

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

XZ方向への移動タスクを追加する(指定方向に1歩歩く)

引数
chr移動させるキャラ
dirデジタル方向もしくは特殊方向指定(Script.MoveTypeに対応)
shouldKeepMotionモーションを維持するかどうか
fixDir向きを固定するかどうか
drawerマップデータ
戻り値

◆ 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

XZ方向への移動タスクを追加する(向きと歩数を指定するタイプ)

引数
selfタスク実行元(dirがCommand.MoveType.FOLLOWもしくはESCAPEのときに利用)
chr移動させるキャラ
dirデジタル方向もしくは特殊方向指定(Script.MoveTypeに対応)
fixDir向きを固定するかどうか
abortOnFail移動失敗時に中断するかどうか
through障害物をすり抜けるかどうか
ignoreHeight高さを無視するかどうか
shouldKeepMotion向きを維持するかどうか
targetDirRad移動方向のラジアン角指定(dirがCommand.MoveType.ANY_RADのときに利用)
totalWalk移動歩数
interpolate現在の向きから補間しながら歩くかどうか
startDirRad現在の向きのラジアン角指定
fourDir角度を90度単位に丸めるかどうか(dirがCommand.MoveType.FOLLOWもしくはESCAPEのときに利用)
戻り値

◆ addYTweener()

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