Pyrogenesis HEAD
Pyrogenesis, a RTS Engine
JumpPointCache::RowTree::Interval Struct Reference

Represents an interval [u15 x0, u16 x1) with a boolean obstruction flag, packed into a single std::uint32_t. More...

Public Member Functions

 Interval ()
 
 Interval (int x0, int x1, bool obstruction)
 
int x0 ()
 
int x1 ()
 
bool obstruction ()
 

Public Attributes

std::uint32_t data
 

Detailed Description

Represents an interval [u15 x0, u16 x1) with a boolean obstruction flag, packed into a single std::uint32_t.

Constructor & Destructor Documentation

◆ Interval() [1/2]

JumpPointCache::RowTree::Interval::Interval ( )
inline

◆ Interval() [2/2]

JumpPointCache::RowTree::Interval::Interval ( int  x0,
int  x1,
bool  obstruction 
)
inline

Member Function Documentation

◆ obstruction()

bool JumpPointCache::RowTree::Interval::obstruction ( )
inline

◆ x0()

int JumpPointCache::RowTree::Interval::x0 ( )
inline

◆ x1()

int JumpPointCache::RowTree::Interval::x1 ( )
inline

Member Data Documentation

◆ data

std::uint32_t JumpPointCache::RowTree::Interval::data

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