|
Night Sky Engine
A fighting game framework made in Unreal Engine
|
#include <NightSkyGameState.h>
Public Member Functions | |
| ANightSkyGameState () | |
| virtual void | Tick (float DeltaTime) override |
| void | MatchInit () |
| void | RoundInit () |
| void | UpdateGameState () |
| void | UpdateGameState (int32 Input1, int32 Input2, bool bShouldResimulate) |
| void | SetScreenCorners () |
| void | UpdateScreen () |
| void | SetScreenBounds () const |
| void | StartSuperFreeze (int32 Duration, int32 SelfDuration, ABattleObject *CallingObject) |
| void | ScreenPosToWorldPos (int32 X, int32 Y, int32 *OutX, int32 *OutY) const |
| ABattleObject * | AddBattleObject (const UState *InState, int PosX, int PosY, EObjDir Dir, int32 ObjectStateIndex, bool bIsCommonState, APlayerObject *Parent) const |
| void | SetDrawPriorityFront (ABattleObject *InObject) const |
| APlayerObject * | SwitchMainPlayer (APlayerObject *InPlayer, int TeamIndex) |
| APlayerObject * | CallAssist (const bool IsP1, int AssistIndex, const FGameplayTag AssistName) |
| bool | CanTag (const APlayerObject *InPlayer, int TeamIndex) const |
| void | SaveGameState (FRollbackData &RollbackData, int32 *InChecksum) |
| void | LoadGameState (FRollbackData &RollbackData) |
| TArray< uint8 > | SaveForRollback () |
| void | LoadForRollback (const TArray< uint8 > &InBytes) |
| void | EndMatch () |
| void | UpdateCamera () |
| void | PlayLevelSequence (APlayerObject *Target, APlayerObject *Enemy, ULevelSequence *Sequence) |
| void | CameraShake (const TSubclassOf< UCameraShakeBase > &Pattern, float Scale) const |
| void | HUDInit () const |
| void | UpdateHUD () |
| void | BattleHudVisibility (bool Visible) |
| void | PlayCommonAudio (USoundBase *InSoundWave, float MaxDuration) |
| void | PlayCharaAudio (USoundBase *InSoundWave, float MaxDuration) |
| void | PlayVoiceLine (USoundBase *InSoundWave, float MaxDuration, int Player) |
| void | PlayAnnouncerVoice (USoundBase *InSoundWave, float MaxDuration) |
| void | PlayMusic (USoundBase *InSoundWave, float MaxDuration) |
| void | ManageAudio () |
| void | RollbackStartAudio (int32 InFrame) |
| int | GetLocalInputs (int Index) const |
| void | SetOtherChecksum (uint32 RemoteChecksum, int32 InFrame) |
| void | PlayAnnouncerVoice (const FGameplayTag Name) |
| void | PlayMusic (const FGameplayTag Name) |
| TArray< APlayerObject * > | GetTeam (bool IsP1) const |
| APlayerObject * | GetMainPlayer (bool IsP1) const |
| void | CallBattleExtension (FGameplayTag Name) |
| int32 | GetGauge (bool IsP1, int32 GaugeIndex) const |
| void | SetGauge (bool IsP1, int32 GaugeIndex, int32 Value) |
| void | UseGauge (bool IsP1, int32 GaugeIndex, int32 Value) |
| bool | IsTagBattle () const |
| int32 | GetTeamCount (bool bIsP1) const |
| void | EndMatch_BP () |
| void | UpdateHUD_BP () |
| void | UpdateHUDAnimations_BP () |
Protected Member Functions | |
| virtual void | BeginPlay () override |
| void | Init () |
| void | PlayIntros () |
| void | UpdateLocalInput () |
| void | SortObjects () |
| void | HandlePushCollision () const |
| void | HandleHitCollision () const |
| void | UpdateVisuals () const |
| void | HandleRoundWin () |
| void | NextRoundTransition (bool bIsP1) |
| bool | HandleMatchWin () |
| void | CollisionView () const |
| int32 | CreateChecksum () |
| FGGPONetworkStats | GetNetworkStats () const |
Definition at line 286 of file NightSkyGameState.h.
| ANightSkyGameState::ANightSkyGameState | ( | ) |
Definition at line 43 of file NightSkyGameState.cpp.
| ABattleObject * ANightSkyGameState::AddBattleObject | ( | const UState * | InState, |
| int | PosX, | ||
| int | PosY, | ||
| EObjDir | Dir, | ||
| int32 | ObjectStateIndex, | ||
| bool | bIsCommonState, | ||
| APlayerObject * | Parent ) const |
Definition at line 1150 of file NightSkyGameState.cpp.
| void ANightSkyGameState::BattleHudVisibility | ( | bool | Visible | ) |
Definition at line 1634 of file NightSkyGameState.cpp.
|
overrideprotectedvirtual |
Reimplemented in ANightSkyWTGameState.
Definition at line 50 of file NightSkyGameState.cpp.
| APlayerObject * ANightSkyGameState::CallAssist | ( | const bool | IsP1, |
| int | AssistIndex, | ||
| const FGameplayTag | AssistName ) |
Definition at line 1478 of file NightSkyGameState.cpp.
| void ANightSkyGameState::CallBattleExtension | ( | FGameplayTag | Name | ) |
Definition at line 1581 of file NightSkyGameState.cpp.
| void ANightSkyGameState::CameraShake | ( | const TSubclassOf< UCameraShakeBase > & | Pattern, |
| float | Scale ) const |
Definition at line 1312 of file NightSkyGameState.cpp.
| bool ANightSkyGameState::CanTag | ( | const APlayerObject * | InPlayer, |
| int | TeamIndex ) const |
Definition at line 1494 of file NightSkyGameState.cpp.
|
protected |
Definition at line 1045 of file NightSkyGameState.cpp.
|
protected |
Definition at line 1056 of file NightSkyGameState.cpp.
| void ANightSkyGameState::EndMatch | ( | ) |
Definition at line 1977 of file NightSkyGameState.cpp.
| void ANightSkyGameState::EndMatch_BP | ( | ) |
| int32 ANightSkyGameState::GetGauge | ( | bool | IsP1, |
| int32 | GaugeIndex ) const |
Definition at line 1589 of file NightSkyGameState.cpp.
| int ANightSkyGameState::GetLocalInputs | ( | int | Index | ) | const |
Definition at line 1509 of file NightSkyGameState.cpp.
| APlayerObject * ANightSkyGameState::GetMainPlayer | ( | bool | IsP1 | ) | const |
Definition at line 1575 of file NightSkyGameState.cpp.
|
protected |
Definition at line 1083 of file NightSkyGameState.cpp.
| TArray< APlayerObject * > ANightSkyGameState::GetTeam | ( | bool | IsP1 | ) | const |
Definition at line 1542 of file NightSkyGameState.cpp.
| int32 ANightSkyGameState::GetTeamCount | ( | bool | bIsP1 | ) | const |
Definition at line 1623 of file NightSkyGameState.cpp.
|
protected |
Definition at line 800 of file NightSkyGameState.cpp.
|
protected |
Definition at line 969 of file NightSkyGameState.cpp.
|
protected |
Definition at line 785 of file NightSkyGameState.cpp.
|
protected |
Definition at line 833 of file NightSkyGameState.cpp.
| void ANightSkyGameState::HUDInit | ( | ) | const |
Definition at line 1322 of file NightSkyGameState.cpp.
|
protected |
Definition at line 68 of file NightSkyGameState.cpp.
| bool ANightSkyGameState::IsTagBattle | ( | ) | const |
Definition at line 1618 of file NightSkyGameState.cpp.
| void ANightSkyGameState::LoadForRollback | ( | const TArray< uint8 > & | InBytes | ) |
Definition at line 1970 of file NightSkyGameState.cpp.
| void ANightSkyGameState::LoadGameState | ( | FRollbackData & | RollbackData | ) |
Definition at line 1915 of file NightSkyGameState.cpp.
| void ANightSkyGameState::ManageAudio | ( | ) |
Definition at line 1734 of file NightSkyGameState.cpp.
| void ANightSkyGameState::MatchInit | ( | ) |
Definition at line 292 of file NightSkyGameState.cpp.
|
protected |
Definition at line 941 of file NightSkyGameState.cpp.
| void ANightSkyGameState::PlayAnnouncerVoice | ( | const FGameplayTag | Name | ) |
Definition at line 1525 of file NightSkyGameState.cpp.
| void ANightSkyGameState::PlayAnnouncerVoice | ( | USoundBase * | InSoundWave, |
| float | MaxDuration ) |
Definition at line 1692 of file NightSkyGameState.cpp.
| void ANightSkyGameState::PlayCharaAudio | ( | USoundBase * | InSoundWave, |
| float | MaxDuration ) |
Definition at line 1659 of file NightSkyGameState.cpp.
| void ANightSkyGameState::PlayCommonAudio | ( | USoundBase * | InSoundWave, |
| float | MaxDuration ) |
Definition at line 1639 of file NightSkyGameState.cpp.
|
protected |
Definition at line 158 of file NightSkyGameState.cpp.
| void ANightSkyGameState::PlayLevelSequence | ( | APlayerObject * | Target, |
| APlayerObject * | Enemy, | ||
| ULevelSequence * | Sequence ) |
Definition at line 1245 of file NightSkyGameState.cpp.
| void ANightSkyGameState::PlayMusic | ( | const FGameplayTag | Name | ) |
Definition at line 1705 of file NightSkyGameState.cpp.
| void ANightSkyGameState::PlayMusic | ( | USoundBase * | InSoundWave, |
| float | MaxDuration ) |
Definition at line 1722 of file NightSkyGameState.cpp.
| void ANightSkyGameState::PlayVoiceLine | ( | USoundBase * | InSoundWave, |
| float | MaxDuration, | ||
| int | Player ) |
Definition at line 1679 of file NightSkyGameState.cpp.
| void ANightSkyGameState::RollbackStartAudio | ( | int32 | InFrame | ) |
Definition at line 1798 of file NightSkyGameState.cpp.
| void ANightSkyGameState::RoundInit | ( | ) |
Definition at line 173 of file NightSkyGameState.cpp.
| TArray< uint8 > ANightSkyGameState::SaveForRollback | ( | ) |
Definition at line 1961 of file NightSkyGameState.cpp.
| void ANightSkyGameState::SaveGameState | ( | FRollbackData & | RollbackData, |
| int32 * | InChecksum ) |
Definition at line 1858 of file NightSkyGameState.cpp.
| void ANightSkyGameState::ScreenPosToWorldPos | ( | int32 | X, |
| int32 | Y, | ||
| int32 * | OutX, | ||
| int32 * | OutY ) const |
Definition at line 1628 of file NightSkyGameState.cpp.
| void ANightSkyGameState::SetDrawPriorityFront | ( | ABattleObject * | InObject | ) | const |
Definition at line 1433 of file NightSkyGameState.cpp.
| void ANightSkyGameState::SetGauge | ( | bool | IsP1, |
| int32 | GaugeIndex, | ||
| int32 | Value ) |
Definition at line 1600 of file NightSkyGameState.cpp.
| void ANightSkyGameState::SetOtherChecksum | ( | uint32 | RemoteChecksum, |
| int32 | InFrame ) |
Definition at line 1519 of file NightSkyGameState.cpp.
| void ANightSkyGameState::SetScreenBounds | ( | ) | const |
Definition at line 1097 of file NightSkyGameState.cpp.
| void ANightSkyGameState::SetScreenCorners | ( | ) |
Definition at line 570 of file NightSkyGameState.cpp.
|
protected |
Definition at line 764 of file NightSkyGameState.cpp.
| void ANightSkyGameState::StartSuperFreeze | ( | int32 | Duration, |
| int32 | SelfDuration, | ||
| ABattleObject * | CallingObject ) |
Definition at line 1142 of file NightSkyGameState.cpp.
| APlayerObject * ANightSkyGameState::SwitchMainPlayer | ( | APlayerObject * | InPlayer, |
| int | TeamIndex ) |
Definition at line 1453 of file NightSkyGameState.cpp.
|
overridevirtual |
Reimplemented in ANightSkyWTGameState.
Definition at line 285 of file NightSkyGameState.cpp.
| void ANightSkyGameState::UpdateCamera | ( | ) |
Definition at line 1179 of file NightSkyGameState.cpp.
| void ANightSkyGameState::UpdateGameState | ( | ) |
Definition at line 756 of file NightSkyGameState.cpp.
| void ANightSkyGameState::UpdateGameState | ( | int32 | Input1, |
| int32 | Input2, | ||
| bool | bShouldResimulate ) |
Definition at line 367 of file NightSkyGameState.cpp.
| void ANightSkyGameState::UpdateHUD | ( | ) |
Definition at line 1336 of file NightSkyGameState.cpp.
| void ANightSkyGameState::UpdateHUD_BP | ( | ) |
| void ANightSkyGameState::UpdateHUDAnimations_BP | ( | ) |
|
protected |
Definition at line 278 of file NightSkyGameState.cpp.
| void ANightSkyGameState::UpdateScreen | ( | ) |
Definition at line 622 of file NightSkyGameState.cpp.
|
protected |
Definition at line 823 of file NightSkyGameState.cpp.
| void ANightSkyGameState::UseGauge | ( | bool | IsP1, |
| int32 | GaugeIndex, | ||
| int32 | Value ) |
Definition at line 1609 of file NightSkyGameState.cpp.
| AAudioManager* ANightSkyGameState::AudioManager = nullptr |
Definition at line 324 of file NightSkyGameState.h.
| UBattleExtensionData* ANightSkyGameState::BattleExtensionData = {} |
Definition at line 316 of file NightSkyGameState.h.
| TArray<FGameplayTag> ANightSkyGameState::BattleExtensionNames = {} |
Definition at line 313 of file NightSkyGameState.h.
| TArray<UBattleExtension*> ANightSkyGameState::BattleExtensions = {} |
Definition at line 312 of file NightSkyGameState.h.
| ANightSkyBattleHudActor* ANightSkyGameState::BattleHudActor = nullptr |
Definition at line 347 of file NightSkyGameState.h.
| TSubclassOf<ABattleObject> ANightSkyGameState::BattleObjectClass = ABattleObject::StaticClass() |
Definition at line 297 of file NightSkyGameState.h.
| FTransform ANightSkyGameState::BattleSceneTransform |
Definition at line 309 of file NightSkyGameState.h.
| FBattleState ANightSkyGameState::BattleState {} |
Definition at line 303 of file NightSkyGameState.h.
| bool ANightSkyGameState::bIsPlayingSequence = false |
Definition at line 342 of file NightSkyGameState.h.
| bool ANightSkyGameState::bPauseGame = false |
Definition at line 337 of file NightSkyGameState.h.
| bool ANightSkyGameState::bViewCollision = false |
Definition at line 339 of file NightSkyGameState.h.
| ACameraActor* ANightSkyGameState::CameraActor = nullptr |
Definition at line 329 of file NightSkyGameState.h.
| class AFighterLocalRunner* ANightSkyGameState::FighterRunner = nullptr |
Definition at line 345 of file NightSkyGameState.h.
| class UNightSkyGameInstance* ANightSkyGameState::GameInstance = nullptr |
Definition at line 319 of file NightSkyGameState.h.
| int32 ANightSkyGameState::LocalFrame = 0 |
Definition at line 349 of file NightSkyGameState.h.
| int ANightSkyGameState::MaxBattleObjects = 400 |
Definition at line 295 of file NightSkyGameState.h.
| TArray<ABattleObject*> ANightSkyGameState::Objects {} |
Definition at line 299 of file NightSkyGameState.h.
| class AParticleManager* ANightSkyGameState::ParticleManager = nullptr |
Definition at line 322 of file NightSkyGameState.h.
| TArray<APlayerObject*> ANightSkyGameState::Players {} |
Definition at line 301 of file NightSkyGameState.h.
| int32 ANightSkyGameState::RemoteFrame = 0 |
Definition at line 350 of file NightSkyGameState.h.
| class ALevelSequenceActor* ANightSkyGameState::SequenceActor = nullptr |
Definition at line 327 of file NightSkyGameState.h.
| ACameraActor* ANightSkyGameState::SequenceCameraActor = nullptr |
Definition at line 331 of file NightSkyGameState.h.
| APlayerObject* ANightSkyGameState::SequenceEnemy = nullptr |
Definition at line 335 of file NightSkyGameState.h.
| APlayerObject* ANightSkyGameState::SequenceTarget = nullptr |
Definition at line 333 of file NightSkyGameState.h.
| TArray<ABattleObject*> ANightSkyGameState::SortedObjects {} |
Definition at line 306 of file NightSkyGameState.h.