Logo
Public Types | Public Member Functions | Static Public Attributes | List of all members
Yukar.Engine.BattleEventControllerBase Class Referenceabstract

Default class for battle event management class More...

Inheritance diagram for Yukar.Engine.BattleEventControllerBase:
Yukar.Engine.MapScene Yukar.Engine.SceneBase

Public Types

enum  CampType { Party = 0 , Enemy }
 
- Public Types inherited from Yukar.Engine.MapScene
enum  EffectPosType { Head , Body , Ground }
 effect coordinates More...
 

Public Member Functions

virtual int getActiveCharacterCampType ()
 
virtual int getActiveCharacterIndex ()
 
virtual int getActiveCharacterActionType ()
 
virtual int getActiveCharacterTargetIndex ()
 
virtual int getActiveCharacterTargetCamp ()
 
virtual string getActiveCharacterSelectedSkillOrItemName ()
 
abstract int getPartyNumber ()
 
abstract int getPartyStatus (Script.Command.VarHeroSourceType srcTypePlus, Guid option, int heroIndex)
 
virtual int getPartyStatus (Guid statusId, int heroIndex)
 
abstract int getEnemyStatus (Script.Command.VarHeroSourceType srcTypePlus, Guid option, int index)
 
virtual int getEnemyStatus (Guid statusId, int index)
 
abstract int getStatus (Script.Command.IfHeroSourceType srcTypePlus, Guid option, Common.GameData.Hero hero)
 
virtual int getStatus (Guid statusId, Common.GameData.Hero hero)
 
abstract int getBattleStatus (Script.Command.VarHeroSourceType srcTypePlus, Guid option, Common.GameData.Hero hero)
 
abstract void refreshEquipmentEffect (Common.GameData.Hero hero)
 
abstract void addStatus (Common.GameData.Hero hero, ScriptRunner.HeroStatusType type, int num)
 
virtual void SetNextBattleStatus (List< BattleCharacterBase > battlePlayerDataList)
 
virtual BattleCharacterBase searchPartyFromId (object heroId)
 
virtual BattleCharacterBase searchEnemyFromMapCharacter (MapCharacter mapCharacter)
 
abstract void fullRecovery (bool poison=true, bool revive=true)
 
abstract Guid getEnemyGuid (int index)
 
abstract void showBattleUi (bool v)
 
abstract void healBattleCharacter (Script.Command curCommand, Guid guId)
 
abstract MapCharacter getBattleActorMapChr (Script.Command curCommand, Guid guId)
 
abstract void setNextAction (Script.Command curCommand, Guid guId)
 
abstract void setBattleStatus (Script.Command curCommand, Guid evGuid, bool typeReduced=false)
 
abstract void battleStop ()
 
abstract BattleEnum.MemberChangeData addMonster (Script.Command curCommand, Guid guId)
 
virtual BattleEnum.MemberChangeData addRemoveMember (Script.Command curCommand)
 
virtual BattleEnum.MemberChangeData addRemoveMember (Script.Command curCommand, Guid guId)
 
abstract bool existMember (Guid guid)
 
abstract void RefreshHeroMapChr (Cast rom)
 
abstract void healParty (Script.Command curCommand, Guid guId)
 
abstract void start (Guid scriptOnTrigger)
 
- Public Member Functions inherited from Yukar.Engine.MapScene
void updateWindows ()
 
void drawWindows ()
 
void setLightDisplayID (bool isBattle, uint displayId)
 
void resetCamera (bool initializeByLoadMap)
 
void resetViewCamera ()
 
 MapScene ()
 
 MapScene (GameMain owner)
 
override void initialize ()
 
void initializeMenu ()
 
void Reset ()
 
void ResetMapCharacter ()
 Placement event reset More...
 
override void finalize ()
 
void releaseMenu ()
 
override void Update ()
 
bool isMenuVisible ()
 Menu display state (not including conversations, etc.) More...
 
override void Draw ()
 drawing process More...
 
SharpKmyMath.Vector3 UpdateCameraAnimation ()
 
void CopyFromCameraManager (CameraManager camManager)
 
void DrawEffects ()
 
void DrawMovies (int priority)
 
virtual void ShowFace (Guid inLeftId, string inLeftMotion, bool inIsLeftFlip, Guid inRightId, string inRightMotion, bool inIsRightFlip, bool inIsLeftActive, bool inUsedLighting)
 
void ShowFace (Guid inLeftId, string inLeftMotion, bool inIsLeftFlip, Guid inRightId, string inRightMotion, bool inIsRightFlip, bool inIsLeftActive, bool inUsedLighting, string blendShapeA, string blendShapeB)
 
virtual void HideFace ()
 
void UpdateFace ()
 
void DrawFace ()
 Explicitly draw a standing picture Should be in SpriteFaceManager.cs, but left here for battle plugin compatibility. More...
 
void CreateCameraMatrix (out SharpKmyMath.Matrix4 p, out SharpKmyMath.Matrix4 v, float farclip=1000f)
 Generate Camera Matrix More...
 
void createCameraMatrix (float aspectRatio, SharpKmyMath.Vector3 lookAt, Common.Rom.ThirdPersonCameraSettings cameraSettings, out SharpKmyMath.Matrix4 p, out SharpKmyMath.Matrix4 v)
 Generation of camera matrix (type that explicitly specifies ThirdPersonCameraSettings) More...
 
void SetLookAtTarget (MapCharacter chr, SharpKmyMath.Vector3 pos)
 
SharpKmyMath.Vector3 GetLookAtTarget ()
 
virtual void GetCharacterScreenPos (MapCharacter chr, out int x, out int y, EffectPosType pos=EffectPosType.Ground)
 
bool GetSpritePos (int spriteid, out int x, out int y)
 
int GetRandom (int max, int min=0)
 
float GetRandom (float max, float min)
 
MapCharacter GetHero ()
 
virtual MapCharacter GetHeroForBattle (Common.Rom.Cast rom=null)
 
virtual ScriptRunner GetScriptRunner (Guid guid)
 
bool ChangeGraphic (MapCharacter mapChr, Guid guid)
 
void LockControl (ScriptRunner runner=null)
 
void UnlockControl (ScriptRunner runner=null)
 
void SetScreenColor (Color color)
 
int ShowMessage (string str, int winAlign, MenuControllerBase.WindowTypes winType, Guid sender)
 
int ShowDialogue (string str, int winAlign, MenuControllerBase.WindowTypes winType, Guid sender)
 
void ShowInn (int innPrice, int winAlign)
 
void ShowTelop (string str, int winAlign, MenuControllerBase.WindowTypes winType, AbstractRenderObject.GameContent.TelopProperty telopProperty, Guid sender)
 
void ShowEventLayout (Guid layoutGuid, Common.Rom.LayoutProperties.LayoutNode.UsageInGame usage)
 
bool IsVisibleMessage ()
 
bool IsQueuedMessage (int id)
 
bool IsVisibleDialogue ()
 
bool IsQueuedDialogue (int id)
 
bool IsVisibleTelop ()
 
bool IsVisibleInn ()
 
bool IsVisibleEventLayout (Guid guid)
 
bool DecidedStayingAtInn ()
 
bool IsWordPopped ()
 
void ShowChoices (string[] strs, int selectionPos)
 
int GetChoicesResult ()
 
bool IsVisibleChoices ()
 
void ShowShop (Guid layoutGuid, Common.Rom.NItem[] items, int[] prices)
 
void ShowInputWindow (string[] loadStrings, int stringLength, string defaultInputStrings, int selectionPosition)
 
void HideInputWindow ()
 
void HideFreeLayout (Guid layoutGuid, bool hideAll)
 
bool haveFinshedInputing ()
 
string GetInputString ()
 
bool IsShopVisible ()
 
bool GetShopResult ()
 
void ShowToast (string p)
 
void UpdateToast ()
 
void DrawToast ()
 
LayoutMenuController GetMenuController ()
 
void StartBattle (IEnumerable< Guid > enemyGuids)
 
void EndBattleMode (int loseSwitch=-1)
 
virtual bool DoGameOver ()
 
void RefreshHeroMapChr (bool setRigitBodyPosition=false)
 
virtual void RefreshHeroJoint (Guid heroGuid)
 
void setEncountFlag (bool p)
 
void setMenuAvailable (bool p)
 
void setSaveAvailable (bool p)
 
virtual void ReservationChangeScene (GameMain.Scenes scene)
 
Common.Rom.Map.CameraControlMode GetCameraControlMode ()
 Get camera control mode More...
 
bool isToastVisible ()
 
void ShowTrashWindow (Guid guid, int num, bool isCancellable=true)
 
bool IsTrashVisible ()
 
void StartFadeIn ()
 
void StartFadeOut ()
 
Catalog getCatalog ()
 
virtual void applyCameraToBattle ()
 
virtual void SetEffectColor (MapCharacter selfChr, Color color)
 
virtual void setHeroName (Guid hero, string nextHeroName)
 
virtual bool ExistMember (Guid heroGuid)
 
void SetEffectTargetColor (int index, Color color)
 
void SetWipe (Guid effectGuid)
 
bool IsWiping ()
 
void StartLoadData ()
 
bool IsLoadingData ()
 
void ReloadLayout (Common.Rom.LayoutProperties.LayoutNode.UsageInGame usage)
 Reread the layout (Since the release processing of the layout that is no longer used runs, it freezes for a moment) More...
 
virtual void StopCameraAnimation ()
 Force quit camera animation More...
 
abstract void initialize ()
 
abstract void finalize ()
 
abstract void Update ()
 
abstract void Draw ()
 

Static Public Attributes

static double lastBattleResult
 
static double lastSkillTargetIndex = -1
 
static CampType lastSkillUseCampType
 
static double lastSkillUserIndex = -1
 
- Static Public Attributes inherited from Yukar.Engine.MapScene
const int PLAYER_LOCK_BY_EVENT = 0x10000
 
const float GHOST_HERO_VISIBLE_DISTANCE = 0.5f
 
const int EFFECT_2D_GROUND_OFFSET = 48
 
static bool disablePreload
 

Additional Inherited Members

- Static Public Member Functions inherited from Yukar.Engine.MapScene
static EffectPosType GetEffectPosType (Common.Resource.NSprite.OrigPos origPos)
 
static void GetScreenPos (SharpKmyMath.Vector3 v, out int x, out int y, SharpKmyMath.Matrix4 pp, SharpKmyMath.Matrix4 vv)
 
static void GetCharacterScreenPos (MapCharacter chr, out int x, out int y, SharpKmyMath.Matrix4 pp, SharpKmyMath.Matrix4 vv, EffectPosType pos)
 
static SharpKmyMath.Vector3 GetCharacterPos (MapCharacter chr, EffectPosType pos)
 
static bool IsMapLoading ()
 Externally refer to whether it is loading More...
 
- Public Attributes inherited from Yukar.Engine.MapScene
MenuControllerBase menuWindow = null
 
SpriteManager spManager = new SpriteManager()
 
List< MapCharactermapCharList = new List<MapCharacter>()
 
List< Guid > destroyedEventList = new List<Guid>()
 
AutoSkipSettings autoSkip = new AutoSkipSettings()
 
ScriptRunnerDictionary runnerDic = new ScriptRunnerDictionary()
 
Color screenColor = Color.Transparent
 
ScriptRunner exclusiveRunner
 
bool exclusiveInverse
 
Common.Rom.Map map
 
Common.Rom.Map.BattleSetting battleSetting
 
MapData mapDrawer
 
MapCharacter hero
 
int playerLocked
 
HashSet< ScriptRunnerlockPushedRunner = new HashSet<ScriptRunner>()
 
MapEngine mapEngine
 
FaceView faceView
 
bool isBattle
 
BattleSequenceManagerBase battleSequenceManager
 
bool isGameOver
 
Vector3 camOffset = new Vector3(0, 0.5f, 0)
 
float yCurrentAngle = 0
 
float xCurrentAngle = -60
 
float yTargetAngle = 0
 
float xTargetAngle = -60
 
float fovy = 5
 
float dist = 70
 
float nearClip = 1f
 
Common.Rom.Camera.LpfTypes lpfType = Common.Rom.Camera.LpfTypes.HEIGHT
 
bool ortho
 
float baseRomDist = 70
 
float baseRomNearClip = 1f
 
bool mapFixCamera
 
bool mapFixCameraMode
 
Common.Rom.ThirdPersonCameraSettings startCameraParam = new Common.Rom.ThirdPersonCameraSettings()
 
SharpKmyMath.Vector3 startPos
 
SharpKmyMath.Vector3 startHeroPos
 
float moveCameraProcessTime
 
float loadMoveCameraProcessTime
 
int isCameraMoveByCameraFunc = 0
 
Guid currentRenderSetting
 
string currentRenderSettingBase64 = ""
 
FieldBattleViewer fieldBattleViewer
 
MapLoadManager loadManager
 
- Public Attributes inherited from Yukar.Engine.SceneBase
GameMain owner
 
- Static Protected Member Functions inherited from Yukar.Engine.MapScene
static bool ChangeGraphicImpl (Catalog catalog, MapCharacter mapChr, Guid guid, MapData mapDrawer)
 
- Protected Attributes inherited from Yukar.Engine.MapScene
Common.Rom.Map.CameraControlMode cameraControlMode = Common.Rom.Map.CameraControlMode.UNKNOWN
 
SharpKmyMath.Matrix4 pp = SharpKmyMath.Matrix4.identity()
 
SharpKmyMath.Matrix4 vv = SharpKmyMath.Matrix4.identity()
 
- Properties inherited from Yukar.Engine.MapScene
virtual CameraManager CameraManager [get]
 
float yAngle [get, set]
 
float xAngle [get, set]
 
float normalizedYAngle [get]
 
SharpKmyMath.Matrix4 CurrentPP [get]
 
SharpKmyMath.Matrix4 CurrentVV [get]
 
SharpKmyMath.Matrix4 BattlePP [get]
 
SharpKmyMath.Matrix4 BattleVV [get]
 
virtual SharpKmyMath.Vector2 ShakeValue [get, set]
 
bool IsMapChangedFrame [get]
 
- Properties inherited from Yukar.Engine.SceneBase
MapScene M [get]
 

Detailed Description

Default class for battle event management class

Member Enumeration Documentation

◆ CampType

Enumerator
Party 
Enemy 

Member Function Documentation

◆ addMonster()

abstract BattleEnum.MemberChangeData Yukar.Engine.BattleEventControllerBase.addMonster ( Script.Command  curCommand,
Guid  guId 
)
pure virtual

◆ addRemoveMember() [1/2]

virtual BattleEnum.MemberChangeData Yukar.Engine.BattleEventControllerBase.addRemoveMember ( Script.Command  curCommand)
virtual

◆ addRemoveMember() [2/2]

virtual BattleEnum.MemberChangeData Yukar.Engine.BattleEventControllerBase.addRemoveMember ( Script.Command  curCommand,
Guid  guId 
)
virtual

◆ addStatus()

abstract void Yukar.Engine.BattleEventControllerBase.addStatus ( Common.GameData.Hero  hero,
ScriptRunner.HeroStatusType  type,
int  num 
)
pure virtual

◆ battleStop()

abstract void Yukar.Engine.BattleEventControllerBase.battleStop ( )
pure virtual

◆ existMember()

abstract bool Yukar.Engine.BattleEventControllerBase.existMember ( Guid  guid)
pure virtual

◆ fullRecovery()

abstract void Yukar.Engine.BattleEventControllerBase.fullRecovery ( bool  poison = true,
bool  revive = true 
)
pure virtual

◆ getActiveCharacterActionType()

virtual int Yukar.Engine.BattleEventControllerBase.getActiveCharacterActionType ( )
virtual

◆ getActiveCharacterCampType()

virtual int Yukar.Engine.BattleEventControllerBase.getActiveCharacterCampType ( )
virtual

◆ getActiveCharacterIndex()

virtual int Yukar.Engine.BattleEventControllerBase.getActiveCharacterIndex ( )
virtual

◆ getActiveCharacterSelectedSkillOrItemName()

virtual string Yukar.Engine.BattleEventControllerBase.getActiveCharacterSelectedSkillOrItemName ( )
virtual

◆ getActiveCharacterTargetCamp()

virtual int Yukar.Engine.BattleEventControllerBase.getActiveCharacterTargetCamp ( )
virtual

◆ getActiveCharacterTargetIndex()

virtual int Yukar.Engine.BattleEventControllerBase.getActiveCharacterTargetIndex ( )
virtual

◆ getBattleActorMapChr()

abstract MapCharacter Yukar.Engine.BattleEventControllerBase.getBattleActorMapChr ( Script.Command  curCommand,
Guid  guId 
)
pure virtual

◆ getBattleStatus()

abstract int Yukar.Engine.BattleEventControllerBase.getBattleStatus ( Script.Command.VarHeroSourceType  srcTypePlus,
Guid  option,
Common.GameData.Hero  hero 
)
pure virtual

◆ getEnemyGuid()

abstract Guid Yukar.Engine.BattleEventControllerBase.getEnemyGuid ( int  index)
pure virtual

◆ getEnemyStatus() [1/2]

virtual int Yukar.Engine.BattleEventControllerBase.getEnemyStatus ( Guid  statusId,
int  index 
)
virtual

◆ getEnemyStatus() [2/2]

abstract int Yukar.Engine.BattleEventControllerBase.getEnemyStatus ( Script.Command.VarHeroSourceType  srcTypePlus,
Guid  option,
int  index 
)
pure virtual

◆ getPartyNumber()

abstract int Yukar.Engine.BattleEventControllerBase.getPartyNumber ( )
pure virtual

◆ getPartyStatus() [1/2]

virtual int Yukar.Engine.BattleEventControllerBase.getPartyStatus ( Guid  statusId,
int  heroIndex 
)
virtual

◆ getPartyStatus() [2/2]

abstract int Yukar.Engine.BattleEventControllerBase.getPartyStatus ( Script.Command.VarHeroSourceType  srcTypePlus,
Guid  option,
int  heroIndex 
)
pure virtual

◆ getStatus() [1/2]

virtual int Yukar.Engine.BattleEventControllerBase.getStatus ( Guid  statusId,
Common.GameData.Hero  hero 
)
virtual

◆ getStatus() [2/2]

abstract int Yukar.Engine.BattleEventControllerBase.getStatus ( Script.Command.IfHeroSourceType  srcTypePlus,
Guid  option,
Common.GameData.Hero  hero 
)
pure virtual

◆ healBattleCharacter()

abstract void Yukar.Engine.BattleEventControllerBase.healBattleCharacter ( Script.Command  curCommand,
Guid  guId 
)
pure virtual

◆ healParty()

abstract void Yukar.Engine.BattleEventControllerBase.healParty ( Script.Command  curCommand,
Guid  guId 
)
pure virtual

◆ refreshEquipmentEffect()

abstract void Yukar.Engine.BattleEventControllerBase.refreshEquipmentEffect ( Common.GameData.Hero  hero)
pure virtual

◆ RefreshHeroMapChr()

abstract void Yukar.Engine.BattleEventControllerBase.RefreshHeroMapChr ( Cast  rom)
pure virtual

◆ searchEnemyFromMapCharacter()

virtual BattleCharacterBase Yukar.Engine.BattleEventControllerBase.searchEnemyFromMapCharacter ( MapCharacter  mapCharacter)
virtual

◆ searchPartyFromId()

virtual BattleCharacterBase Yukar.Engine.BattleEventControllerBase.searchPartyFromId ( object  heroId)
virtual

◆ setBattleStatus()

abstract void Yukar.Engine.BattleEventControllerBase.setBattleStatus ( Script.Command  curCommand,
Guid  evGuid,
bool  typeReduced = false 
)
pure virtual

◆ setNextAction()

abstract void Yukar.Engine.BattleEventControllerBase.setNextAction ( Script.Command  curCommand,
Guid  guId 
)
pure virtual

◆ SetNextBattleStatus()

virtual void Yukar.Engine.BattleEventControllerBase.SetNextBattleStatus ( List< BattleCharacterBase battlePlayerDataList)
virtual

◆ showBattleUi()

abstract void Yukar.Engine.BattleEventControllerBase.showBattleUi ( bool  v)
pure virtual

◆ start()

abstract void Yukar.Engine.BattleEventControllerBase.start ( Guid  scriptOnTrigger)
pure virtual

Member Data Documentation

◆ lastBattleResult

double Yukar.Engine.BattleEventControllerBase.lastBattleResult
static

◆ lastSkillTargetIndex

double Yukar.Engine.BattleEventControllerBase.lastSkillTargetIndex = -1
static

◆ lastSkillUseCampType

CampType Yukar.Engine.BattleEventControllerBase.lastSkillUseCampType
static

◆ lastSkillUserIndex

double Yukar.Engine.BattleEventControllerBase.lastSkillUserIndex = -1
static