RPG Maker Unite version 1.00.00
Generated by Doxygen 1.9.6
 
Loading...
Searching...
No Matches
RPGMaker.Codebase.Runtime.Map.Component.Character.CharacterOnMap Class Reference

Public Member Functions

void Init (Vector2 positionOnTile, string assetId, string id)
 初期化
 
void ResetActor (string assetId, string id)
 
void ChangeAsset (string assetId)
 
bool GetTransparent ()
 
void SetTransparent (bool flg)
 
Vector2 GetCurrentPositionOnTile ()
 現在のタイル位置を取得
 
Vector2 GetDestinationPositionOnTile ()
 移動先のタイル位置を取得
 
Vector2 GetCurrentPositionOnLoopMapTile ()
 ループマップでの現在のタイルの元の位置を取得 (イベント用)
 
bool IsMoveCheck (int x, int y)
 
bool IsAroundCheck (int x, int y)
 
bool IsSameCheck (int x, int y)
 
void SetCurrentPositionOnTile (Vector2 pos)
 パーティ用
 
CharacterMoveDirectionEnum GetCurrentDirection ()
 現在の向きを取得
 
CharacterMoveDirectionEnum GetLastMoveDirection ()
 最終の移動方向を取得
 
void SetLastMoveDirection (CharacterMoveDirectionEnum lastMoveDirection)
 セーブデータから最終の移動方向を設定
 
virtual EventMapDataModel.EventMapPage.PriorityType GetPriority ()
 表示プライオリティを取得を取得。
 
void MoveUpOneUnit ([CanBeNull] Action callback=null)
 1マス上に移動する
 
void MoveDownOneUnit ([CanBeNull] Action callback=null)
 1マス下に移動する
 
void MoveLeftOneUnit ([CanBeNull] Action callback=null)
 
void MoveRightOneUnit ([CanBeNull] Action callback=null)
 1マス右に移動する
 
void MoveDinagonalOneUnit (CharacterMoveDirectionEnum moveDirection, CharacterMoveDirectionEnum moveDir2, Vector2 offset, [CanBeNull] Action callback=null, bool changeDirection=true)
 
virtual void MoveToPositionOnTile (CharacterMoveDirectionEnum directionEnum, Vector2 destinationPositionOnTile, [CanBeNull] Action callback=null)
 指定したタイルの位置へ移動する
 
virtual void SetToPositionOnTile (Vector2 destinationPositionOnTile)
 指定したタイルの位置を設定
 
bool IsMoving ()
 移動状態の取得
 
void SetMoving (bool moving)
 移動状態の設定
 
void TryChangeCharacterDirection (CharacterMoveDirectionEnum directionEnum, bool lockIgnore=false)
 向き変更を試行する。
 
void ChangeCharacterDirection (CharacterMoveDirectionEnum directionEnum, bool lockIgnore=false)
 向きを変える
 
void SetAnimation (bool animation, bool step)
 アニメーションの設定
 
virtual void SetAnimationSettings (bool animation, bool step)
 
bool GetAnimation ()
 
bool GetStepAnimation ()
 
void SteppingAnimation ()
 
void SetIsLockDirection (bool flg)
 
bool GetIsLockDirection ()
 
void SetThrough (bool flg)
 
bool GetCharacterThrough ()
 
float GetCharacterOpacity ()
 
void SetCharacterSpeed (float speed)
 
float GetCharacterSpeed ()
 
void SetCharacterRide (bool isRide, float speed=0.0f)
 
void SetDash (bool isDash)
 
void CanDash (bool canDash)
 
void SetOpacity (float opacity)
 
void SetOpacityToNpc (float opacity)
 
void SetChangeBlendMode (int selectIndex)
 
void ReloadCharacterImage (string id)
 
void SetCharacterEnable (bool enable)
 
int MoveRouteCount ()
 
void SetMoveRoute (List< CharacterMoveDirectionEnum > moveRoute)
 
void ResetMoveRoute ()
 
CharacterMoveDirectionEnum GetNextRoute ()
 
virtual void UpdateTimeHandler ()
 
void MoveEnd ()
 
void ResetSetting ()
 
void ResetBush (bool isForce, bool isBush)
 茂み再設定処理
 
void SetGameObjectPositionWithRenderingOrder (Vector2 position, float height=float.NaN)
 描画順調整値も含めた表示位置設定。
 
TileDataModel GetDamageTileData ()
 ダメージ床の取得
 

Public Attributes

int x_next
 
int x_now
 
int y_next
 
int y_now
 

Protected Member Functions

void SetSortingLayer (bool isFlying)
 ソートレイヤーを設定。
 
virtual void MoveToPositionOnTileByFrame (Vector2 destinationPositionOnWorld, Action callBack)
 目的位置へ毎フレーム移動していく
 

Protected Attributes

Vector2 _currentPositionOnTile
 
bool _isAnimation
 
bool _isLockDirection
 
bool _isMoving
 
bool _isSteppingAnimation
 
bool _isStop = true
 
bool _isThrough
 
Vector2 _destinationPositionOnTile
 
Action _callback
 
TileDataModel _tileDataModel = null
 
float _opacity = 1f
 
CharacterMoveDirectionEnum _lastMoveDirectionEnum = CharacterMoveDirectionEnum.Down
 最終の移動方向
 
IEnumerator _moveEnumerator
 
float _moveSpeed = 3.75f
 MVの「標準」速度は16フレームで1マス進む。1秒間では3.75マス進む
 
float _moveSpeedVehicle
 
bool _isRide = false
 

Properties

string AssetId [get]
 
string CharacterId [get]
 
CharacterGraphic Graphic [get]
 
Transform actorTransform [get]
 

Member Function Documentation

◆ ChangeCharacterDirection()

void RPGMaker.Codebase.Runtime.Map.Component.Character.CharacterOnMap.ChangeCharacterDirection ( CharacterMoveDirectionEnum  directionEnum,
bool  lockIgnore = false 
)

向きを変える

Parameters
directionEnum
lockIgnore

◆ GetCurrentDirection()

CharacterMoveDirectionEnum RPGMaker.Codebase.Runtime.Map.Component.Character.CharacterOnMap.GetCurrentDirection ( )

現在の向きを取得

Returns

◆ GetCurrentPositionOnLoopMapTile()

Vector2 RPGMaker.Codebase.Runtime.Map.Component.Character.CharacterOnMap.GetCurrentPositionOnLoopMapTile ( )

ループマップでの現在のタイルの元の位置を取得 (イベント用)

Returns

◆ GetCurrentPositionOnTile()

Vector2 RPGMaker.Codebase.Runtime.Map.Component.Character.CharacterOnMap.GetCurrentPositionOnTile ( )

現在のタイル位置を取得

Returns

◆ GetDamageTileData()

TileDataModel RPGMaker.Codebase.Runtime.Map.Component.Character.CharacterOnMap.GetDamageTileData ( )

ダメージ床の取得

Returns

◆ GetDestinationPositionOnTile()

Vector2 RPGMaker.Codebase.Runtime.Map.Component.Character.CharacterOnMap.GetDestinationPositionOnTile ( )

移動先のタイル位置を取得

Returns

◆ GetLastMoveDirection()

CharacterMoveDirectionEnum RPGMaker.Codebase.Runtime.Map.Component.Character.CharacterOnMap.GetLastMoveDirection ( )

最終の移動方向を取得

Returns

◆ GetPriority()

virtual EventMapDataModel.EventMapPage.PriorityType RPGMaker.Codebase.Runtime.Map.Component.Character.CharacterOnMap.GetPriority ( )
virtual

表示プライオリティを取得を取得。

Returns
表示プライオリティ

イベントに設定されいる情報なので、イベントで作成されたキャラクターでなければ『通常』とする。

Reimplemented in RPGMaker.Codebase.Runtime.Map.Component.Character.EventOnMap.

◆ Init()

void RPGMaker.Codebase.Runtime.Map.Component.Character.CharacterOnMap.Init ( Vector2  positionOnTile,
string  assetId,
string  id 
)

初期化

Parameters
positionOnTile
assetId
id

◆ IsMoving()

bool RPGMaker.Codebase.Runtime.Map.Component.Character.CharacterOnMap.IsMoving ( )

移動状態の取得

Returns

◆ MoveDinagonalOneUnit()

void RPGMaker.Codebase.Runtime.Map.Component.Character.CharacterOnMap.MoveDinagonalOneUnit ( CharacterMoveDirectionEnum  moveDirection,
CharacterMoveDirectionEnum  moveDir2,
Vector2  offset,
[CanBeNull] Action  callback = null,
bool  changeDirection = true 
)

1マス斜めに移動する

◆ MoveDownOneUnit()

void RPGMaker.Codebase.Runtime.Map.Component.Character.CharacterOnMap.MoveDownOneUnit ( [CanBeNull] Action  callback = null)

1マス下に移動する

Parameters
callback
changeDirection

◆ MoveLeftOneUnit()

void RPGMaker.Codebase.Runtime.Map.Component.Character.CharacterOnMap.MoveLeftOneUnit ( [CanBeNull] Action  callback = null)

1マス左に移動する

◆ MoveRightOneUnit()

void RPGMaker.Codebase.Runtime.Map.Component.Character.CharacterOnMap.MoveRightOneUnit ( [CanBeNull] Action  callback = null)

1マス右に移動する

Parameters
callback
changeDirection

◆ MoveToPositionOnTile()

virtual void RPGMaker.Codebase.Runtime.Map.Component.Character.CharacterOnMap.MoveToPositionOnTile ( CharacterMoveDirectionEnum  directionEnum,
Vector2  destinationPositionOnTile,
[CanBeNull] Action  callback = null 
)
virtual

指定したタイルの位置へ移動する

Parameters
directionEnum
destinationPositionOnTile
callback
changeDirection

◆ MoveToPositionOnTileByFrame()

virtual void RPGMaker.Codebase.Runtime.Map.Component.Character.CharacterOnMap.MoveToPositionOnTileByFrame ( Vector2  destinationPositionOnWorld,
Action  callBack 
)
protectedvirtual

目的位置へ毎フレーム移動していく

Parameters
destinationPositionOnWorld
callBack

Reimplemented in RPGMaker.Codebase.Runtime.Map.Component.Character.VehicleOnMap.

◆ MoveUpOneUnit()

void RPGMaker.Codebase.Runtime.Map.Component.Character.CharacterOnMap.MoveUpOneUnit ( [CanBeNull] Action  callback = null)

1マス上に移動する

Parameters
callback
changeDirection

◆ ResetBush()

void RPGMaker.Codebase.Runtime.Map.Component.Character.CharacterOnMap.ResetBush ( bool  isForce,
bool  isBush 
)

茂み再設定処理

Parameters
isForceタイル情報を無視して強制的に引数の設定を適用する
isBush強制的に適用する際の、茂み設定

◆ SetAnimation()

void RPGMaker.Codebase.Runtime.Map.Component.Character.CharacterOnMap.SetAnimation ( bool  animation,
bool  step 
)

アニメーションの設定

Parameters
animation
step

◆ SetAnimationSettings()

virtual void RPGMaker.Codebase.Runtime.Map.Component.Character.CharacterOnMap.SetAnimationSettings ( bool  animation,
bool  step 
)
virtual

◆ SetCurrentPositionOnTile()

void RPGMaker.Codebase.Runtime.Map.Component.Character.CharacterOnMap.SetCurrentPositionOnTile ( Vector2  pos)

パーティ用

Parameters
pos

◆ SetGameObjectPositionWithRenderingOrder()

void RPGMaker.Codebase.Runtime.Map.Component.Character.CharacterOnMap.SetGameObjectPositionWithRenderingOrder ( Vector2  position,
float  height = float::NaN 
)

描画順調整値も含めた表示位置設定。

Parameters
positionxy位置。
height高さ (省略時は変更なし。ジャンプで使用する)。

◆ SetLastMoveDirection()

void RPGMaker.Codebase.Runtime.Map.Component.Character.CharacterOnMap.SetLastMoveDirection ( CharacterMoveDirectionEnum  lastMoveDirection)

セーブデータから最終の移動方向を設定

Parameters
lastMoveDirection

◆ SetMoving()

void RPGMaker.Codebase.Runtime.Map.Component.Character.CharacterOnMap.SetMoving ( bool  moving)

移動状態の設定

Parameters
moving

◆ SetSortingLayer()

void RPGMaker.Codebase.Runtime.Map.Component.Character.CharacterOnMap.SetSortingLayer ( bool  isFlying)
protected

ソートレイヤーを設定。

Parameters
isFlying飛行中フラグ

◆ SetToPositionOnTile()

virtual void RPGMaker.Codebase.Runtime.Map.Component.Character.CharacterOnMap.SetToPositionOnTile ( Vector2  destinationPositionOnTile)
virtual

指定したタイルの位置を設定

Parameters
destinationPositionOnTile

◆ TryChangeCharacterDirection()

void RPGMaker.Codebase.Runtime.Map.Component.Character.CharacterOnMap.TryChangeCharacterDirection ( CharacterMoveDirectionEnum  directionEnum,
bool  lockIgnore = false 
)

向き変更を試行する。

Parameters
directionEnum
lockIgnore

◆ UpdateTimeHandler()

virtual void RPGMaker.Codebase.Runtime.Map.Component.Character.CharacterOnMap.UpdateTimeHandler ( )
virtual