LEAP Documentation 40220
Documentation for the LEAP project
FSavedMove_PXVehicleMovement Class Reference

#include <VehicleMovementComponent.h>

Inheritance diagram for FSavedMove_PXVehicleMovement:

Public Types

typedef FSavedMove_Character Super
 

Public Member Functions

virtual void SetMoveFor (ACharacter *Character, float InDeltaTime, FVector const &NewAccel, class FNetworkPredictionData_Client_Character &ClientData) override
 Sets up the move before sending it to the server. More...
 
virtual uint8 GetCompressedFlags () const override
 Store input commands in the compressed flags. More...
 
virtual void Clear () override
 Resets all saved variables. More...
 
virtual bool CanCombineWith (const FSavedMovePtr &NewMove, ACharacter *Character, float MaxDelta) const override
 This is used to check whether or not two moves can be combined into one. Basically you just check to make sure that the saved variables are the same. More...
 
virtual void PrepMoveFor (class ACharacter *Character) override
 Sets variables on character movement component before making a predictive correction. More...
 

Public Attributes

uint8 bSavedWantsToBoost: 1
 
uint8 bSavedWantsSteerLeft: 1
 
uint8 bSavedWantsSteerRight: 1
 
uint8 bSavedWantsToBoostUpwards: 1
 

Member Typedef Documentation

◆ Super

typedef FSavedMove_Character FSavedMove_PXVehicleMovement::Super

Member Function Documentation

◆ CanCombineWith()

bool FSavedMove_PXVehicleMovement::CanCombineWith ( const FSavedMovePtr &  NewMove,
ACharacter *  Character,
float  MaxDelta 
) const
overridevirtual

This is used to check whether or not two moves can be combined into one. Basically you just check to make sure that the saved variables are the same.

◆ Clear()

void FSavedMove_PXVehicleMovement::Clear ( )
overridevirtual

Resets all saved variables.

◆ GetCompressedFlags()

uint8 FSavedMove_PXVehicleMovement::GetCompressedFlags ( ) const
overridevirtual

Store input commands in the compressed flags.

◆ PrepMoveFor()

void FSavedMove_PXVehicleMovement::PrepMoveFor ( class ACharacter *  Character)
overridevirtual

Sets variables on character movement component before making a predictive correction.

This is used to copy state from the saved move to the character movement component. This is ONLY used for predictive corrections, the actual data must be sent through RPC.

◆ SetMoveFor()

void FSavedMove_PXVehicleMovement::SetMoveFor ( ACharacter *  Character,
float  InDeltaTime,
FVector const &  NewAccel,
class FNetworkPredictionData_Client_Character &  ClientData 
)
overridevirtual

Sets up the move before sending it to the server.

Member Data Documentation

◆ bSavedWantsSteerLeft

uint8 FSavedMove_PXVehicleMovement::bSavedWantsSteerLeft

◆ bSavedWantsSteerRight

uint8 FSavedMove_PXVehicleMovement::bSavedWantsSteerRight

◆ bSavedWantsToBoost

uint8 FSavedMove_PXVehicleMovement::bSavedWantsToBoost

◆ bSavedWantsToBoostUpwards

uint8 FSavedMove_PXVehicleMovement::bSavedWantsToBoostUpwards

The documentation for this class was generated from the following files: