![]() |
|
Separation of event and player management from the MapScene class More...
Classes | |
| class | Follower |
| platoon member More... | |
| class | FollowerEngine |
| class | ShotInfo |
| A class that manages event firing tasks More... | |
Public Member Functions | |
| MapEngine (SharpKmyPhysics.PhysicsBase p) | |
| bool | CheckAllCondition (MapCharacter mapChr, IEnumerable< Common.Rom.Event.Condition > condList) |
| Check whether the condition panel is satisfied from all event sheets (for compatibility) More... | |
| ScriptRunner | AddEvent (MapScene s, Common.Rom.Event inEvent, Common.Rom.RomItem parentRom) |
| Add MapCharacter to scene based on event ROM (for compatibility) More... | |
| void | genEncountStep () |
| void | updateConditionEffect (bool forceNeedSort=false) |
| IEnumerable< MapCharacter > | getOtherChacaterFromMap (MapCharacter self, MapData mapData, bool ignoreHeight=true, bool checkForward=false) |
| List< int > | getCollisionPoints (MapCharacter ev, int dir) |
| void | setFollowersVisible (bool flag, bool setToCurrent=true, bool forceHide=false) |
| Set the display state of the formation More... | |
| bool | getFollowersVisible () |
| void | startFollowerSort () |
| void | pushFollower (int partyIndex, int order=-1) |
| void | pushFollower (Guid guid, int order=-1) |
| void | endFollowerSort (bool immediateComplete=false) |
| End of platoon operation More... | |
Static Public Member Functions | |
| static bool | checkCondition (double a, double b, Common.Rom.Script.Command.ConditionType conditionType) |
| Compare a and b according to operators (for compatibility) More... | |
Public Attributes | |
| EventEngine | eventEngine = new EventEngine() |
| FollowerEngine | followerEngine = new FollowerEngine() |
| float | restStep |
| List< Follower > | followers = new List<Follower>() |
Static Public Attributes | |
| const float | DEFAULT_INVINCIBLE_TIME = 0.5f |
| const int | MAX_FOLLOWERS = 64 |
Properties | |
| MapScene | owner [get, set] |
| bool | followerVisible [get, set] |
Separation of event and player management from the MapScene class
Separation of event and player management from the MapScene class Here we further separate only the formation management
| Yukar.Engine.MapEngine.MapEngine | ( | SharpKmyPhysics.PhysicsBase | p | ) |
| ScriptRunner Yukar.Engine.MapEngine.AddEvent | ( | MapScene | s, |
| Common.Rom.Event | inEvent, | ||
| Common.Rom.RomItem | parentRom | ||
| ) |
Add MapCharacter to scene based on event ROM (for compatibility)
| s | |
| inEvent | |
| parentRom |
| bool Yukar.Engine.MapEngine.CheckAllCondition | ( | MapCharacter | mapChr, |
| IEnumerable< Common.Rom.Event.Condition > | condList | ||
| ) |
Check whether the condition panel is satisfied from all event sheets (for compatibility)
| mapChr | |
| condList |
|
static |
Compare a and b according to operators (for compatibility)
| a | |
| b | |
| conditionType |
| void Yukar.Engine.MapEngine.endFollowerSort | ( | bool | immediateComplete = false | ) |
End of platoon operation
| immediateComplete | Whether the swap should be completed immediately without animating |
| void Yukar.Engine.MapEngine.genEncountStep | ( | ) |
| List< int > Yukar.Engine.MapEngine.getCollisionPoints | ( | MapCharacter | ev, |
| int | dir | ||
| ) |
| bool Yukar.Engine.MapEngine.getFollowersVisible | ( | ) |
| IEnumerable< MapCharacter > Yukar.Engine.MapEngine.getOtherChacaterFromMap | ( | MapCharacter | self, |
| MapData | mapData, | ||
| bool | ignoreHeight = true, |
||
| bool | checkForward = false |
||
| ) |
| void Yukar.Engine.MapEngine.pushFollower | ( | Guid | guid, |
| int | order = -1 |
||
| ) |
| void Yukar.Engine.MapEngine.pushFollower | ( | int | partyIndex, |
| int | order = -1 |
||
| ) |
| void Yukar.Engine.MapEngine.setFollowersVisible | ( | bool | flag, |
| bool | setToCurrent = true, |
||
| bool | forceHide = false |
||
| ) |
Set the display state of the formation
| flag | show or hide |
| setToCurrent | Reflect immediately? |
| forceHide | to force set |
| void Yukar.Engine.MapEngine.startFollowerSort | ( | ) |
| void Yukar.Engine.MapEngine.updateConditionEffect | ( | bool | forceNeedSort = false | ) |
|
static |
| EventEngine Yukar.Engine.MapEngine.eventEngine = new EventEngine() |
| FollowerEngine Yukar.Engine.MapEngine.followerEngine = new FollowerEngine() |
|
static |
| float Yukar.Engine.MapEngine.restStep |
|
getset |
|
getset |