Head Mounted VR 3.0
Loading...
Searching...
No Matches
AVR_AmmoClip Class Reference

Ammo clip. More...

#include <VR_AmmoClip.h>

+ Inheritance diagram for AVR_AmmoClip:

Public Member Functions

 AVR_AmmoClip ()
 
virtual void FireAmmo ()
 Updates the amount of ammo.
 
void SetIsApllyed (bool Status)
 
virtual void DecreaseAmmoAmout (uint8 Ammout)
 
virtual void DisableShadows (bool disable)
 
uint8 GetAmmo ()
 Returns ammo amount.
 
FORCEINLINE uint8 GetCaliber () const
 Returns the current caliber.
 
FORCEINLINE bool GetIsApllyed () const
 
virtual void Tick (float DeltaTime) override
 Called every frame.
 
- Public Member Functions inherited from AVR_StaticMesh
 AVR_StaticMesh ()
 
void UpdateModel (class UStaticMesh *NewMesh)
 Updates the Pickup mesh model.
 
void UpdateMaterial (class UMaterialInterface *NewMaterial)
 Updates the Pickup mesh material.
 
void UpdateMass (float NewMass)
 Updates the mass on the object.
 
FORCEINLINE class UStaticMeshComponent * GetPickupMesh () const
 Get Pickup Mesh.
 
- Public Member Functions inherited from AVR_Actor
 AVR_Actor ()
 
virtual bool IsColliding_Implementation ()
 
void OnHitCheckColliding (UPrimitiveComponent *HitComponent, AActor *OtherActor, UPrimitiveComponent *OtherComp, FVector normalImpulse, const FHitResult &Hit)
 
- Public Member Functions inherited from IVR_InteractionInterface
bool IsGrabbed ()
 
bool CanPullGrab ()
 
void Grab (class UVR_HandComponent *MotionController, bool &HandleStatus, bool bFroceAttachHandle)
 Used for interaction with objects such as door.
 
bool IsColliding ()
 
void Drop (class UVR_HandComponent *MotionController)
 Stop object interaction.
 
void Shoot ()
 
bool IsHeldBy (class UVR_HandComponent *MotionController)
 Indetify if object is held by MotionController.
 
bool CanNonVRInteract ()
 
bool ForceCheckForGrabComponents ()
 
void NonVRInteraction (AVR_Player *Player)
 
bool IsNonVRInteractTillStop ()
 
void Stop_NonVRInteraction (AVR_Player *Player)
 Stop object interaction.
 

Public Attributes

uint8 Ammo
 
- Public Attributes inherited from AVR_StaticMesh
class UVR_GrabComponentGrabComponent
 

Protected Member Functions

virtual void BeginPlay () override
 Called when the game starts or when spawned.
 
- Protected Member Functions inherited from AVR_StaticMesh
- Protected Member Functions inherited from AVR_Actor

Protected Attributes

uint8 Caliber
 
uint8 PrevAmmo
 
bool bIsApllyed
 
- Protected Attributes inherited from AVR_StaticMesh
class USceneComponent * RootScene
 Default scene root.
 
class UStaticMeshComponent * PickupMesh
 Mesh for picking up.
 
- Protected Attributes inherited from AVR_Actor
bool bIsColliding = false
 

Detailed Description

Ammo clip.

Constructor & Destructor Documentation

◆ AVR_AmmoClip()

AVR_AmmoClip::AVR_AmmoClip ( )

Member Function Documentation

◆ BeginPlay()

void AVR_AmmoClip::BeginPlay ( )
overrideprotectedvirtual

Called when the game starts or when spawned.

Reimplemented from AVR_StaticMesh.

◆ DecreaseAmmoAmout()

void AVR_AmmoClip::DecreaseAmmoAmout ( uint8 Ammout)
virtual

◆ DisableShadows()

void AVR_AmmoClip::DisableShadows ( bool disable)
virtual

◆ FireAmmo()

void AVR_AmmoClip::FireAmmo ( )
virtual

Updates the amount of ammo.

Parameters
NewAmount
ChangeModel

◆ GetAmmo()

uint8 AVR_AmmoClip::GetAmmo ( )

Returns ammo amount.

Returns

◆ GetCaliber()

FORCEINLINE uint8 AVR_AmmoClip::GetCaliber ( ) const
inline

Returns the current caliber.

Returns
uint8 Caliber

◆ GetIsApllyed()

FORCEINLINE bool AVR_AmmoClip::GetIsApllyed ( ) const
inline

◆ SetIsApllyed()

void AVR_AmmoClip::SetIsApllyed ( bool Status)

◆ Tick()

void AVR_AmmoClip::Tick ( float DeltaTime)
overridevirtual

Called every frame.

Reimplemented from AVR_StaticMesh.

Member Data Documentation

◆ Ammo

uint8 AVR_AmmoClip::Ammo

◆ bIsApllyed

bool AVR_AmmoClip::bIsApllyed
protected

◆ Caliber

uint8 AVR_AmmoClip::Caliber
protected

◆ PrevAmmo

uint8 AVR_AmmoClip::PrevAmmo
protected

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