Rise
The Vieneo Province
grid Class Reference

#include <grid.h>

Collaboration diagram for grid:
[legend]

Public Member Functions

 grid (Viewscreen *ptrGame)
 
void CalculateCubeAndTcp ()
 
void Process ()
 
void ReceiveWholeGrid (SRenderGrid datapacket)
 
void RequestWholeGrid ()
 
void ClearGrid ()
 
void ClearGrid (short, short) const
 
void CalculateInsideArray (short t, short s) const
 

Public Attributes

bool dataReady = false
 
bool geometryReady = false
 
char dataPending = 0
 
bool makeBuildings = true
 
bool makeClouds = true
 
VECTOR2SHORT tcp = VECTOR2SHORT()
 
char cube = -1
 
GridProperties gridProperties
 

Private Member Functions

void Trace (const char *msg, Logger::Level severity=Logger::Level::Info) const
 

Private Attributes

Viewscreenviewscreen = nullptr
 
char oldcube = -1
 
VECTOR2SHORT oldtcp = VECTOR2SHORT()
 
bool g_bAboveCloudsOld = false
 

Detailed Description

Definition at line 12 of file grid.h.

Constructor & Destructor Documentation

◆ grid()

grid::grid ( Viewscreen ptrGame)

Definition at line 4 of file grid.cpp.

Member Function Documentation

◆ CalculateCubeAndTcp()

void grid::CalculateCubeAndTcp ( )

Definition at line 79 of file grid.cpp.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ CalculateInsideArray()

void grid::CalculateInsideArray ( short  t,
short  s 
) const
Todo:
I think with doubling the elevation data sampling we won't need to do this?

Definition at line 1181 of file grid.cpp.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ ClearGrid() [1/2]

void grid::ClearGrid ( )

https://jira.risetvp.com/view.php?id=980

Definition at line 59 of file grid.cpp.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ ClearGrid() [2/2]

void grid::ClearGrid ( short  l,
short  m 
) const

Definition at line 19 of file grid.cpp.

Here is the call graph for this function:

◆ Process()

void grid::Process ( )
Todo:
why are we doing the ones that aren't visible?!

Definition at line 166 of file grid.cpp.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ ReceiveWholeGrid()

void grid::ReceiveWholeGrid ( SRenderGrid  datapacket)

Definition at line 109 of file grid.cpp.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ RequestWholeGrid()

void grid::RequestWholeGrid ( )

Definition at line 145 of file grid.cpp.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ Trace()

void grid::Trace ( const char *  msg,
Logger::Level  severity = Logger::Level::Info 
) const
private

Definition at line 12 of file grid.cpp.

Here is the call graph for this function:
Here is the caller graph for this function:

Member Data Documentation

◆ cube

char grid::cube = -1

Definition at line 35 of file grid.h.

◆ dataPending

char grid::dataPending = 0

Definition at line 31 of file grid.h.

◆ dataReady

bool grid::dataReady = false

Definition at line 29 of file grid.h.

◆ g_bAboveCloudsOld

bool grid::g_bAboveCloudsOld = false
private

Definition at line 18 of file grid.h.

◆ geometryReady

bool grid::geometryReady = false

Definition at line 30 of file grid.h.

◆ gridProperties

GridProperties grid::gridProperties

Definition at line 36 of file grid.h.

◆ makeBuildings

bool grid::makeBuildings = true

Definition at line 32 of file grid.h.

◆ makeClouds

bool grid::makeClouds = true

Definition at line 33 of file grid.h.

◆ oldcube

char grid::oldcube = -1
private

Definition at line 16 of file grid.h.

◆ oldtcp

VECTOR2SHORT grid::oldtcp = VECTOR2SHORT()
private

Definition at line 17 of file grid.h.

◆ tcp

VECTOR2SHORT grid::tcp = VECTOR2SHORT()

Definition at line 34 of file grid.h.

◆ viewscreen

Viewscreen* grid::viewscreen = nullptr
private

Definition at line 14 of file grid.h.


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