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] |
| void RPGMaker.Codebase.Runtime.Map.Component.Character.CharacterOnMap.ChangeCharacterDirection | ( | CharacterMoveDirectionEnum | directionEnum, |
| bool | lockIgnore = false |
||
| ) |
向きを変える
| directionEnum | |
| lockIgnore |
| CharacterMoveDirectionEnum RPGMaker.Codebase.Runtime.Map.Component.Character.CharacterOnMap.GetCurrentDirection | ( | ) |
現在の向きを取得
| Vector2 RPGMaker.Codebase.Runtime.Map.Component.Character.CharacterOnMap.GetCurrentPositionOnLoopMapTile | ( | ) |
ループマップでの現在のタイルの元の位置を取得 (イベント用)
| Vector2 RPGMaker.Codebase.Runtime.Map.Component.Character.CharacterOnMap.GetCurrentPositionOnTile | ( | ) |
現在のタイル位置を取得
| TileDataModel RPGMaker.Codebase.Runtime.Map.Component.Character.CharacterOnMap.GetDamageTileData | ( | ) |
ダメージ床の取得
| Vector2 RPGMaker.Codebase.Runtime.Map.Component.Character.CharacterOnMap.GetDestinationPositionOnTile | ( | ) |
移動先のタイル位置を取得
| CharacterMoveDirectionEnum RPGMaker.Codebase.Runtime.Map.Component.Character.CharacterOnMap.GetLastMoveDirection | ( | ) |
最終の移動方向を取得
|
virtual |
表示プライオリティを取得を取得。
イベントに設定されいる情報なので、イベントで作成されたキャラクターでなければ『通常』とする。
Reimplemented in RPGMaker.Codebase.Runtime.Map.Component.Character.EventOnMap.
| void RPGMaker.Codebase.Runtime.Map.Component.Character.CharacterOnMap.Init | ( | Vector2 | positionOnTile, |
| string | assetId, | ||
| string | id | ||
| ) |
初期化
| positionOnTile | |
| assetId | |
| id |
| bool RPGMaker.Codebase.Runtime.Map.Component.Character.CharacterOnMap.IsMoving | ( | ) |
移動状態の取得
| void RPGMaker.Codebase.Runtime.Map.Component.Character.CharacterOnMap.MoveDinagonalOneUnit | ( | CharacterMoveDirectionEnum | moveDirection, |
| CharacterMoveDirectionEnum | moveDir2, | ||
| Vector2 | offset, | ||
| [CanBeNull] Action | callback = null, |
||
| bool | changeDirection = true |
||
| ) |
1マス斜めに移動する
| void RPGMaker.Codebase.Runtime.Map.Component.Character.CharacterOnMap.MoveDownOneUnit | ( | [CanBeNull] Action | callback = null | ) |
1マス下に移動する
| callback | |
| changeDirection |
| void RPGMaker.Codebase.Runtime.Map.Component.Character.CharacterOnMap.MoveLeftOneUnit | ( | [CanBeNull] Action | callback = null | ) |
1マス左に移動する
| void RPGMaker.Codebase.Runtime.Map.Component.Character.CharacterOnMap.MoveRightOneUnit | ( | [CanBeNull] Action | callback = null | ) |
1マス右に移動する
| callback | |
| changeDirection |
|
virtual |
指定したタイルの位置へ移動する
| directionEnum | |
| destinationPositionOnTile | |
| callback | |
| changeDirection |
|
protectedvirtual |
目的位置へ毎フレーム移動していく
| destinationPositionOnWorld | |
| callBack |
Reimplemented in RPGMaker.Codebase.Runtime.Map.Component.Character.VehicleOnMap.
| void RPGMaker.Codebase.Runtime.Map.Component.Character.CharacterOnMap.MoveUpOneUnit | ( | [CanBeNull] Action | callback = null | ) |
1マス上に移動する
| callback | |
| changeDirection |
| void RPGMaker.Codebase.Runtime.Map.Component.Character.CharacterOnMap.ResetBush | ( | bool | isForce, |
| bool | isBush | ||
| ) |
茂み再設定処理
| isForce | タイル情報を無視して強制的に引数の設定を適用する |
| isBush | 強制的に適用する際の、茂み設定 |
| void RPGMaker.Codebase.Runtime.Map.Component.Character.CharacterOnMap.SetAnimation | ( | bool | animation, |
| bool | step | ||
| ) |
アニメーションの設定
| animation | |
| step |
|
virtual |
Reimplemented in RPGMaker.Codebase.Runtime.Map.Component.Character.EventOnMap.
| void RPGMaker.Codebase.Runtime.Map.Component.Character.CharacterOnMap.SetCurrentPositionOnTile | ( | Vector2 | pos | ) |
パーティ用
| pos |
| void RPGMaker.Codebase.Runtime.Map.Component.Character.CharacterOnMap.SetGameObjectPositionWithRenderingOrder | ( | Vector2 | position, |
| float | height = float::NaN |
||
| ) |
描画順調整値も含めた表示位置設定。
| position | xy位置。 |
| height | 高さ (省略時は変更なし。ジャンプで使用する)。 |
| void RPGMaker.Codebase.Runtime.Map.Component.Character.CharacterOnMap.SetLastMoveDirection | ( | CharacterMoveDirectionEnum | lastMoveDirection | ) |
セーブデータから最終の移動方向を設定
| lastMoveDirection |
| void RPGMaker.Codebase.Runtime.Map.Component.Character.CharacterOnMap.SetMoving | ( | bool | moving | ) |
移動状態の設定
| moving |
|
protected |
ソートレイヤーを設定。
| isFlying | 飛行中フラグ |
|
virtual |
指定したタイルの位置を設定
| destinationPositionOnTile |
| void RPGMaker.Codebase.Runtime.Map.Component.Character.CharacterOnMap.TryChangeCharacterDirection | ( | CharacterMoveDirectionEnum | directionEnum, |
| bool | lockIgnore = false |
||
| ) |
向き変更を試行する。
| directionEnum | |
| lockIgnore |
|
virtual |
Reimplemented in RPGMaker.Codebase.Runtime.Map.Component.Character.EventOnMap.