A class that manages the display of each character on the map More...
Classes | |
class | CollisionStatus |
A class that stores information about collisions More... | |
class | DisplayObject |
3D objects linked to MapCharacter More... | |
class | HitColliderHandler |
Contact collider management class for \ | |
class | JointInfo |
for model joints More... | |
class | TalkColliderHandler |
Collider management class for \ | |
Public Types | |
enum | HideCauses { NONE = 0 , BY_EVENT = 1 , BY_FOLLOWERS = 1 << 1 , BY_BATTLE = 1 << 2 , BY_CAMERA = 1 << 4 , BY_INVINSIBLE = 1 << 5 , BY_DEAD = 1 << 6 , BY_PARTICLE_OPACITY = 1 << 7 } |
hidden flag More... | |
enum | DirectionMethods { NORMAL , FIX , PHYSICS } |
Orientation management More... | |
Public Member Functions | |
Common.Rom.Script | getCurrentScript (Catalog catalog) |
Common.Rom.Event.Sheet | getCurrentSheet () |
SharpKmyGfx.ModelInstance | getModelInstance () |
MapSprite | getMapSprite () |
MapBillboard | getMapBillboard () |
SharpKmyGfx.ParticleInstance | getParticle () |
MapCharacter (Common.Rom.Map.EventRef evref, bool inIsDynamic=false) | |
MapCharacter (Common.Rom.Event ev, Common.Rom.Map.EventRef evref, MapScene inOwner=null, bool inIsFace=false) | |
void | Initialize () |
Guid | GetScriptId (Common.Catalog inCatalog, int inIdx) |
Common.Rom.Script | GetScript (Common.Catalog inCatalog, int inIdx) |
Vector3 | getPosition () |
get location More... | |
SharpKmyMath.Vector3 | getKmyPosition () |
void | setPosition (float x, float y, float z) |
void | setPosition (Vector3 newPos) |
warp character coordinates The reflection will be the next frame, so if you use it for a purpose that calls it every frame continuously, it will not move until it calms down. More... | |
void | SetRigidbodyPostion (Vector3 rigidbodyPosition) |
void | setDirection (int dir, bool immed=false, bool bForce=false) |
set direction More... | |
void | setRotation (Vector3 rotate) |
Vector3 | getRotation () |
void | setDirectionFromRadian (float rad, bool immed=false, bool bForce=false) |
Set direction (specify radian value) More... | |
void | playMotion (string name, float blendTime=0.2f, bool isTemporary=false, bool doLockMotion=false) |
bool | isChangeMotionAvailable () |
bool | isBillboard () |
bool | isSprite () |
void | pause () |
sound pose More... | |
void | resume () |
resume sound More... | |
void | ChangeGraphic (Yukar.Common.Resource.GfxResourceBase image, MapData map) |
DisplayObject | addInstance (DisplayObject parent, Common.Resource.GfxResourceBase res, string attachNode=null, bool useTranslateOnly=false) |
void | SetupModel (DisplayObject p, MapData map, Common.Resource.GfxResourceBase res, Common.Resource.Model model) |
IEnumerable< bool > | SaveSubGraphicState () |
void | LoadSubGraphicState (List< bool > subGrpEnabled) |
void | clearJointInfo () |
void | setJointInfoFromGameData (Catalog catalog, Hero hero, Party party) |
void | addJointInfo (Party.JointTarget target, Common.Resource.GfxResourceBase rom, bool rotate) |
void | addJointInfoImpl (Party.JointTarget target, Common.Resource.GfxResourceBase rom, SharpKmyMath.Matrix4 mtx) |
void | Reset (bool forChangeGraphic=false) |
void | ClearMoveMacros () |
void | finalizeCollider (bool callFromReset=true) |
Vector3 | getCurDir () |
Vector3 | getTgtDir () |
float | getDirectionRadian () |
Get the current direction in radians More... | |
int | getDirectionDigital () |
Get the current direction as a digital value from top, bottom, left, and right More... | |
float | getPitchDegree () |
Get pitch direction slope (X) More... | |
void | ChangeSpeed (int speed) |
bool | Walk (float moveX, float moveZ, bool inCheckPlayerMoveRange=false) |
void | ActivateRigidbody () |
bool | WalkByAddForce (Vector3 move, bool inCheckPlayerMoveRange=false, float brakeRatio=0) |
Vector3 | Move (float moveX, float moveZ, bool changeDir, float moveY=0) |
void | update (float yAngle=0) |
void | BeforeUpdate () |
void | UpdateOnlyScript () |
void | AfterDraw () |
void | FixedUpdate () |
void | Update (MapData map, float yangle, bool isLockDirection) |
void | UpdateTransform (MapData map) |
void | updateColliderPositions () |
bool | draw (SharpKmyGfx.Render scn) |
void | setVisibility (bool flg) |
void | stopPickup (bool flg) |
void | setOpacityMultiplier (float v) |
float | getOpacityMultiplier (bool ignoreHide=false) |
void | setOpacityMultiplier (Microsoft.Xna.Framework.Color color) |
void | ChangeColor (byte r, byte g, byte b, byte a) |
Common.Rom.RomItem | getGraphic () |
void | setBlend (SharpKmyGfx.BLENDTYPE type) |
float | getHeight () |
bool | contains2dMotion (string motion) |
void | setScale (float scaleX, float scaleY, float scaleZ) |
void | setScale (Vector3 scale) |
Vector3 | getScale () |
MapCharacter | CreateEvent (Guid guid, float dir) |
Dynamically generate cast-based events More... | |
void | resetColor () |
bool | isInactiveParticle () |
void | buildingLightOn (bool flg) |
void | setHeroSymbol (bool flg) |
void | setDisplayID (uint id) |
override void | onContact (SharpKmyPhysics.PhysicsNotifyTarget other, SharpKmyMath.Vector3 position, SharpKmyMath.Vector3 normal) |
void | setPhysics (SharpKmyPhysics.PhysicsBase p) |
void | refreshRigidBody () |
void | refreshRigidBodyMask () |
void | CalcurateCollisionMinMax () |
void | addRigidBody () |
RigidBody | getRigidbody () |
EffectDrawerBase | getConditionEffectDrawer (Common.Rom.Condition inCondition) |
void | updateEffectDrawer () |
void | drawConditionEffect (SharpKmyMath.Matrix4 pp, SharpKmyMath.Matrix4 vv) |
void | addEffectDrawer (Common.Rom.Condition inCondition) |
void | removeEffectDrawer (Common.Rom.Condition inCondition) |
void | removeAllEffectDrawer () |
Removes all abnormal status effects More... | |
void | SetSubGraphicOpacity (int index, float v) |
Subgraphic transparency change More... | |
float | GetSubGraphicOpacity (int index) |
Get subgraphic transparency More... | |
Public Member Functions inherited from SharpKmyPhysics::PhysicsNotifyTarget | |
PhysicsNotifyTarget () | |
!PhysicsNotifyTarget () | |
~PhysicsNotifyTarget () | |
virtual void | onUpdate () |
virtual void | onStartContact (PhysicsNotifyTarget^ other, SharpKmyMath::Vector3 position, SharpKmyMath::Vector3 normal) |
virtual void | onContact (PhysicsNotifyTarget^ other, SharpKmyMath::Vector3 position, SharpKmyMath::Vector3 normal) |
virtual void | onEndContact (PhysicsNotifyTarget^ other, SharpKmyMath::Vector3 position, SharpKmyMath::Vector3 normal) |
virtual void | onDestroy () |
Static Public Member Functions | |
static int | convertDirectionToDigital (float rad) |
Convert direction value (radian → digital) More... | |
static float | convertDirectionToRadian (int dir) |
Convert direction value (digital → radian) More... | |
static Common.Resource.Character.DisplayType | getDisplayType (Common.Rom.RomItem res) |
Static Public Attributes | |
static readonly string[] | R_ARM_NODE_NAMES = { "R_itemhook", "hook_R_hand" } |
static readonly string[] | L_ARM_NODE_NAMES = { "L_itemhook", "hook_L_hand" } |
static Color | invalidDamageColor = new Color(255, 255, 255, 254) |
const float | BODY_SIZE = 0.3f |
Properties | |
override MapCharacter | MapChr [get] |
override Guid | TerrainRef [get] |
float | mLastMoveRad [get, set] |
Vector3 | mScale = Vector3.One [get, set] |
List< DisplayObject > | DisplayObjects [get] |
string | Name [get, set] |
bool | DestroyReserved [get, set] |
bool | IsDynamicGenerated [get] |
bool | IsEvent [get] |
Dictionary< Common.Rom.Condition, EffectDrawerBase > | ConditionEffectDrawerDic [get] |
int | drawConditionEffectIdx [get, set] |
Properties inherited from Yukar.Engine.MapCharacterColliderHandler | |
virtual MapCharacter | MapChr [get] |
virtual Guid | TerrainRef [get] |
A class that manages the display of each character on the map
Yukar.Engine.MapCharacter.MapCharacter | ( | Common.Rom.Map.EventRef | evref, |
bool | inIsDynamic = false |
||
) |
Yukar.Engine.MapCharacter.MapCharacter | ( | Common.Rom.Event | ev, |
Common.Rom.Map.EventRef | evref, | ||
MapScene | inOwner = null , |
||
bool | inIsFace = false |
||
) |
void Yukar.Engine.MapCharacter.ActivateRigidbody | ( | ) |
void Yukar.Engine.MapCharacter.addEffectDrawer | ( | Common.Rom.Condition | inCondition | ) |
DisplayObject Yukar.Engine.MapCharacter.addInstance | ( | DisplayObject | parent, |
Common.Resource.GfxResourceBase | res, | ||
string | attachNode = null , |
||
bool | useTranslateOnly = false |
||
) |
void Yukar.Engine.MapCharacter.addJointInfo | ( | Party.JointTarget | target, |
Common.Resource.GfxResourceBase | rom, | ||
bool | rotate | ||
) |
void Yukar.Engine.MapCharacter.addJointInfoImpl | ( | Party.JointTarget | target, |
Common.Resource.GfxResourceBase | rom, | ||
SharpKmyMath.Matrix4 | mtx | ||
) |
void Yukar.Engine.MapCharacter.addRigidBody | ( | ) |
void Yukar.Engine.MapCharacter.AfterDraw | ( | ) |
void Yukar.Engine.MapCharacter.BeforeUpdate | ( | ) |
void Yukar.Engine.MapCharacter.buildingLightOn | ( | bool | flg | ) |
void Yukar.Engine.MapCharacter.CalcurateCollisionMinMax | ( | ) |
void Yukar.Engine.MapCharacter.ChangeColor | ( | byte | r, |
byte | g, | ||
byte | b, | ||
byte | a | ||
) |
void Yukar.Engine.MapCharacter.ChangeGraphic | ( | Yukar.Common.Resource.GfxResourceBase | image, |
MapData | map | ||
) |
void Yukar.Engine.MapCharacter.ChangeSpeed | ( | int | speed | ) |
void Yukar.Engine.MapCharacter.clearJointInfo | ( | ) |
void Yukar.Engine.MapCharacter.ClearMoveMacros | ( | ) |
bool Yukar.Engine.MapCharacter.contains2dMotion | ( | string | motion | ) |
|
static |
Convert direction value (radian → digital)
rad |
|
static |
Convert direction value (digital → radian)
dir |
MapCharacter Yukar.Engine.MapCharacter.CreateEvent | ( | Guid | guid, |
float | dir | ||
) |
Dynamically generate cast-based events
guid | GUID of cast to generate |
dir | Generation direction |
bool Yukar.Engine.MapCharacter.draw | ( | SharpKmyGfx.Render | scn | ) |
void Yukar.Engine.MapCharacter.drawConditionEffect | ( | SharpKmyMath.Matrix4 | pp, |
SharpKmyMath.Matrix4 | vv | ||
) |
void Yukar.Engine.MapCharacter.finalizeCollider | ( | bool | callFromReset = true | ) |
void Yukar.Engine.MapCharacter.FixedUpdate | ( | ) |
EffectDrawerBase Yukar.Engine.MapCharacter.getConditionEffectDrawer | ( | Common.Rom.Condition | inCondition | ) |
Vector3 Yukar.Engine.MapCharacter.getCurDir | ( | ) |
Common.Rom.Script Yukar.Engine.MapCharacter.getCurrentScript | ( | Catalog | catalog | ) |
Common.Rom.Event.Sheet Yukar.Engine.MapCharacter.getCurrentSheet | ( | ) |
int Yukar.Engine.MapCharacter.getDirectionDigital | ( | ) |
Get the current direction as a digital value from top, bottom, left, and right
float Yukar.Engine.MapCharacter.getDirectionRadian | ( | ) |
Get the current direction in radians
|
static |
Common.Rom.RomItem Yukar.Engine.MapCharacter.getGraphic | ( | ) |
float Yukar.Engine.MapCharacter.getHeight | ( | ) |
SharpKmyMath.Vector3 Yukar.Engine.MapCharacter.getKmyPosition | ( | ) |
MapBillboard Yukar.Engine.MapCharacter.getMapBillboard | ( | ) |
MapSprite Yukar.Engine.MapCharacter.getMapSprite | ( | ) |
SharpKmyGfx.ModelInstance Yukar.Engine.MapCharacter.getModelInstance | ( | ) |
float Yukar.Engine.MapCharacter.getOpacityMultiplier | ( | bool | ignoreHide = false | ) |
SharpKmyGfx.ParticleInstance Yukar.Engine.MapCharacter.getParticle | ( | ) |
float Yukar.Engine.MapCharacter.getPitchDegree | ( | ) |
Get pitch direction slope (X)
Vector3 Yukar.Engine.MapCharacter.getPosition | ( | ) |
get location
RigidBody Yukar.Engine.MapCharacter.getRigidbody | ( | ) |
Vector3 Yukar.Engine.MapCharacter.getRotation | ( | ) |
Vector3 Yukar.Engine.MapCharacter.getScale | ( | ) |
Common.Rom.Script Yukar.Engine.MapCharacter.GetScript | ( | Common.Catalog | inCatalog, |
int | inIdx | ||
) |
Guid Yukar.Engine.MapCharacter.GetScriptId | ( | Common.Catalog | inCatalog, |
int | inIdx | ||
) |
float Yukar.Engine.MapCharacter.GetSubGraphicOpacity | ( | int | index | ) |
Get subgraphic transparency
index | index |
Vector3 Yukar.Engine.MapCharacter.getTgtDir | ( | ) |
void Yukar.Engine.MapCharacter.Initialize | ( | ) |
bool Yukar.Engine.MapCharacter.isBillboard | ( | ) |
bool Yukar.Engine.MapCharacter.isChangeMotionAvailable | ( | ) |
bool Yukar.Engine.MapCharacter.isInactiveParticle | ( | ) |
bool Yukar.Engine.MapCharacter.isSprite | ( | ) |
void Yukar.Engine.MapCharacter.LoadSubGraphicState | ( | List< bool > | subGrpEnabled | ) |
Vector3 Yukar.Engine.MapCharacter.Move | ( | float | moveX, |
float | moveZ, | ||
bool | changeDir, | ||
float | moveY = 0 |
||
) |
override void Yukar.Engine.MapCharacter.onContact | ( | SharpKmyPhysics.PhysicsNotifyTarget | other, |
SharpKmyMath.Vector3 | position, | ||
SharpKmyMath.Vector3 | normal | ||
) |
void Yukar.Engine.MapCharacter.pause | ( | ) |
sound pose
void Yukar.Engine.MapCharacter.playMotion | ( | string | name, |
float | blendTime = 0.2f , |
||
bool | isTemporary = false , |
||
bool | doLockMotion = false |
||
) |
void Yukar.Engine.MapCharacter.refreshRigidBody | ( | ) |
void Yukar.Engine.MapCharacter.refreshRigidBodyMask | ( | ) |
void Yukar.Engine.MapCharacter.removeAllEffectDrawer | ( | ) |
Removes all abnormal status effects
void Yukar.Engine.MapCharacter.removeEffectDrawer | ( | Common.Rom.Condition | inCondition | ) |
void Yukar.Engine.MapCharacter.Reset | ( | bool | forChangeGraphic = false | ) |
void Yukar.Engine.MapCharacter.resetColor | ( | ) |
void Yukar.Engine.MapCharacter.resume | ( | ) |
resume sound
IEnumerable< bool > Yukar.Engine.MapCharacter.SaveSubGraphicState | ( | ) |
void Yukar.Engine.MapCharacter.setBlend | ( | SharpKmyGfx.BLENDTYPE | type | ) |
void Yukar.Engine.MapCharacter.setDirection | ( | int | dir, |
bool | immed = false , |
||
bool | bForce = false |
||
) |
set direction
dir | |
immed | |
bForce |
void Yukar.Engine.MapCharacter.setDirectionFromRadian | ( | float | rad, |
bool | immed = false , |
||
bool | bForce = false |
||
) |
Set direction (specify radian value)
rad | |
immed | |
bForce |
void Yukar.Engine.MapCharacter.setDisplayID | ( | uint | id | ) |
void Yukar.Engine.MapCharacter.setHeroSymbol | ( | bool | flg | ) |
void Yukar.Engine.MapCharacter.setOpacityMultiplier | ( | float | v | ) |
void Yukar.Engine.MapCharacter.setOpacityMultiplier | ( | Microsoft.Xna.Framework.Color | color | ) |
void Yukar.Engine.MapCharacter.setPhysics | ( | SharpKmyPhysics.PhysicsBase | p | ) |
void Yukar.Engine.MapCharacter.setPosition | ( | float | x, |
float | y, | ||
float | z | ||
) |
void Yukar.Engine.MapCharacter.setPosition | ( | Vector3 | newPos | ) |
warp character coordinates The reflection will be the next frame, so if you use it for a purpose that calls it every frame continuously, it will not move until it calms down.
newPos |
void Yukar.Engine.MapCharacter.SetRigidbodyPostion | ( | Vector3 | rigidbodyPosition | ) |
void Yukar.Engine.MapCharacter.setRotation | ( | Vector3 | rotate | ) |
void Yukar.Engine.MapCharacter.setScale | ( | float | scaleX, |
float | scaleY, | ||
float | scaleZ | ||
) |
void Yukar.Engine.MapCharacter.setScale | ( | Vector3 | scale | ) |
void Yukar.Engine.MapCharacter.SetSubGraphicOpacity | ( | int | index, |
float | v | ||
) |
Subgraphic transparency change
index | index |
v | Transparency |
void Yukar.Engine.MapCharacter.SetupModel | ( | DisplayObject | p, |
MapData | map, | ||
Common.Resource.GfxResourceBase | res, | ||
Common.Resource.Model | model | ||
) |
void Yukar.Engine.MapCharacter.setVisibility | ( | bool | flg | ) |
void Yukar.Engine.MapCharacter.stopPickup | ( | bool | flg | ) |
void Yukar.Engine.MapCharacter.update | ( | float | yAngle = 0 | ) |
void Yukar.Engine.MapCharacter.Update | ( | MapData | map, |
float | yangle, | ||
bool | isLockDirection | ||
) |
void Yukar.Engine.MapCharacter.updateColliderPositions | ( | ) |
void Yukar.Engine.MapCharacter.updateEffectDrawer | ( | ) |
void Yukar.Engine.MapCharacter.UpdateOnlyScript | ( | ) |
void Yukar.Engine.MapCharacter.UpdateTransform | ( | MapData | map | ) |
bool Yukar.Engine.MapCharacter.Walk | ( | float | moveX, |
float | moveZ, | ||
bool | inCheckPlayerMoveRange = false |
||
) |
bool Yukar.Engine.MapCharacter.WalkByAddForce | ( | Vector3 | move, |
bool | inCheckPlayerMoveRange = false , |
||
float | brakeRatio = 0 |
||
) |
int Yukar.Engine.MapCharacter.ageCount |
MapCharacterBattleStatus Yukar.Engine.MapCharacter.battleStatus = new MapCharacterBattleStatus() |
int Yukar.Engine.MapCharacter.billboardAnimRemain |
BakinObject Yukar.Engine.MapCharacter.bindedScript |
|
static |
CollisionStatus Yukar.Engine.MapCharacter.collisionStatus |
string Yukar.Engine.MapCharacter.currentMotion |
int Yukar.Engine.MapCharacter.currentPage = Event.CURRENTPAGE_NOT_INITED |
DirectionMethods Yukar.Engine.MapCharacter.dirMethod |
int Yukar.Engine.MapCharacter.dynamicGenerateId = 0 |
string Yukar.Engine.MapCharacter.dynamicGeneratorName = "" |
bool Yukar.Engine.MapCharacter.expand |
bool Yukar.Engine.MapCharacter.fixHeight |
bool Yukar.Engine.MapCharacter.fixPos |
Guid Yukar.Engine.MapCharacter.guId |
HideCauses Yukar.Engine.MapCharacter.hide |
bool Yukar.Engine.MapCharacter.ignoreControlRigidbody = false |
|
static |
bool Yukar.Engine.MapCharacter.isCommonEvent |
bool Yukar.Engine.MapCharacter.isDestroyed = false |
bool Yukar.Engine.MapCharacter.isFace |
|
static |
bool Yukar.Engine.MapCharacter.lockMotion |
float Yukar.Engine.MapCharacter.mMoveStep |
List<MapCharacterMoveMacro> Yukar.Engine.MapCharacter.moveMacros = new List<MapCharacterMoveMacro>(2) |
Guid Yukar.Engine.MapCharacter.moveScript = Guid.Empty |
string Yukar.Engine.MapCharacter.nowMotion |
Vector3 Yukar.Engine.MapCharacter.pos |
|
static |
float Yukar.Engine.MapCharacter.restInvalidDamageTime |
float Yukar.Engine.MapCharacter.restTime |
int Yukar.Engine.MapCharacter.restWalkCnt |
Common.Rom.Event Yukar.Engine.MapCharacter.rom |
float Yukar.Engine.MapCharacter.rotateSpeed = Common.Rom.GameSettings.DEFAULT_ROTATESPEED |
bool Yukar.Engine.MapCharacter.unusePhysics = false |
bool Yukar.Engine.MapCharacter.useOverrideColor |
|
get |
|
getset |
|
get |
|
getset |
|
get |
|
get |
|
get |
|
getset |
|
getset |
|
getset |
|
get |