Night Sky Engine
A fighting game framework made in Unreal Engine
Loading...
Searching...
No Matches
FCollisionBox Struct Reference

A collision box. More...

#include <CollisionBox.h>

Public Member Functions

bool operator!= (const FCollisionBox &OtherBox) const
 

Public Attributes

TEnumAsByte< EBoxTypeType = BOX_Hurt
 
int32 PosX = 0
 
int32 PosY = 0
 
int32 SizeX = 0
 
int32 SizeY = 0
 

Detailed Description

A collision box.

Primarily used for push and hit collision, but some box types are used for specific operations.

Definition at line 35 of file CollisionBox.h.

Member Function Documentation

◆ operator!=()

bool FCollisionBox::operator!= ( const FCollisionBox & OtherBox) const
inline

Compares against another collision box for inequality.

Parameters
OtherBoxThe box to compare against.
Returns
If any of the fields of the other box are different, return true. Otherwise return false.

Definition at line 71 of file CollisionBox.h.

Member Data Documentation

◆ PosX

int32 FCollisionBox::PosX = 0

X position.

Definition at line 48 of file CollisionBox.h.

◆ PosY

int32 FCollisionBox::PosY = 0

Y position.

Definition at line 53 of file CollisionBox.h.

◆ SizeX

int32 FCollisionBox::SizeX = 0

X size.

Definition at line 58 of file CollisionBox.h.

◆ SizeY

int32 FCollisionBox::SizeY = 0

Y size.

Definition at line 63 of file CollisionBox.h.

◆ Type

TEnumAsByte<EBoxType> FCollisionBox::Type = BOX_Hurt

The type of box.

Definition at line 43 of file CollisionBox.h.


The documentation for this struct was generated from the following file: