FSavedMove_Character represents a saved move on the client that has been sent to the server and might need to be played back. 更多...
#include <CharacterMovementComponent.h>
Public 成员函数 | |
| virtual bool | CanCombineWith (const FSavedMovePtr &NewMove, ACharacter *InCharacter, float MaxDelta) const |
| Returns true if this move can be combined with NewMove for replication without changing any behavior | |
| virtual void | Clear () |
| Clear saved move properties, so it can be re-used. | |
| virtual void | CombineWith (const FSavedMove_Character *OldMove, ACharacter *InCharacter, APlayerController *PC, const FVector &OldStartLocation) |
| Combine this move with an older move and update relevant state. | |
| virtual uint8 | GetCompressedFlags () const |
| Returns a byte containing encoded special movement information (jumping, crouching, etc.) | |
| virtual void | GetPackedAngles (uint32 &YawAndPitchPack, uint8 &RollPack) const |
| Packs control rotation for network transport | |
| virtual FVector | GetRevertedLocation () const |
| Returns starting position if we were to revert the move, either absolute StartLocation, or StartRelativeLocation offset from MovementBase's current location (since we want to try to move forward at this time). | |
| virtual bool | IsImportantMove (const FSavedMovePtr &LastAckedMove) const |
| Returns true if this move is an "important" move that should be sent again if not acked by the server | |
| virtual bool | IsMatchingStartControlRotation (const APlayerController *PC) const |
| Compare current control rotation with stored starting data | |
| virtual void | PostUpdate (ACharacter *C, EPostUpdateMode PostUpdateMode) |
| Set the properties describing the final position, etc. 更多... | |
| virtual void | PrepMoveFor (ACharacter *C) |
| Called before ClientUpdatePosition uses this SavedMove to make a predictive correction | |
| virtual void | SetInitialPosition (ACharacter *C) |
| Set the properties describing the position, etc. 更多... | |
| virtual void | SetMoveFor (ACharacter *C, float InDeltaTime, FVector const &NewAccel, class FNetworkPredictionData_Client_Character &ClientData) |
| Called to set up this saved move (when initially created) to make a predictive correction. | |
FSavedMove_Character represents a saved move on the client that has been sent to the server and might need to be played back.
|
virtual |
Set the properties describing the final position, etc.
of the moved pawn.
|
virtual |
Set the properties describing the position, etc.
of the moved pawn at the start of the move.