Rubeus::Awerere::AFlag class

Array based collection of collision flag used in grid based resolution.

Constructors, destructors, conversion operators

AFlag(const int& bufferSize = 1)
Constructor.
~AFlag()
Destructor.

Public functions

auto operator*(AFlag& right) -> bool
Operates multiplication on flag values.
auto getLength() const -> size_t
Return the length of this flag.

Function documentation

Rubeus::Awerere::AFlag::AFlag(const int& bufferSize = 1)

Constructor.

Parameters
bufferSize Flags buffer size. Default value is BufferSize. If BufferSize is not set before hand, then default is 1. Unusable by Awerere if BufferSize is not set.

bool Rubeus::Awerere::AFlag::operator*(AFlag& right)

Operates multiplication on flag values.

Parameters
right Right side of operator.
Returns Result of OR operation.

size_t Rubeus::Awerere::AFlag::getLength() const

Return the length of this flag.

Returns The length of this flag (not in bytes, but count).