Rise
The Vieneo Province
CargoManagement Class Reference

#include <Instrument.h>

Inheritance diagram for CargoManagement:
[legend]
Collaboration diagram for CargoManagement:
[legend]

Public Member Functions

 CargoManagement (int prmX, int prmY, float prmXScale, float prmYScale, Bus *prmBus, Logger *prmLogger, DeviceObject *prmDevice, std::vector< Font *> prmFonts)
 
void Render () override
 
bool HandleKeyPress (short key, bool shift) override
 
- Public Member Functions inherited from Instrument
 Instrument (int prmX, int prmY, float prmXScale, float prmYScale, Bus *prmBus, Logger *prmLogger, DeviceObject *prmDevice, std::vector< Font *> prmFonts)
 
void DrawText (const WCHAR *str, int relativeX, int relativeY, float prmZ, int flags, D3DXCOLOR color, int font=-1, std::string elementName="", int width=0, int height=0)
 
virtual void FrameMove (float fElapsed)
 
virtual void OnPageChanged ()
 

Private Member Functions

void RenderRow (const WCHAR *row, DWORD color, int rowId, std::string type="", int value=0)
 

Private Attributes

std::string rowType [64]
 
int rowValue [64] = {}
 

Additional Inherited Members

- Protected Attributes inherited from Instrument
int x = 0
 
int y = 0
 
float xScale = 1.0f
 
float yScale = 1.0f
 
DeviceObjectpDevice = nullptr
 
Busbus = nullptr
 
Loggerlogger = nullptr
 
UINT defaultFont = 0
 
int uiRow = 0
 
bool showMenu = false
 
int uiMenuColumn = -1
 

Detailed Description

Definition at line 98 of file Instrument.h.

Constructor & Destructor Documentation

◆ CargoManagement()

CargoManagement::CargoManagement ( int  prmX,
int  prmY,
float  prmXScale,
float  prmYScale,
Bus prmBus,
Logger prmLogger,
DeviceObject prmDevice,
std::vector< Font *>  prmFonts 
)

Definition at line 4 of file CargoManagement.cpp.

Here is the call graph for this function:

Member Function Documentation

◆ HandleKeyPress()

bool CargoManagement::HandleKeyPress ( short  key,
bool  shift 
)
overridevirtual
Todo:
need to make sure bay doors are open

Reimplemented from Instrument.

Definition at line 501 of file CargoManagement.cpp.

Here is the call graph for this function:

◆ Render()

void CargoManagement::Render ( )
overridevirtual
Todo:
this one is suspicious, what case would it not be set
Todo:
look at maybe aggregating lines where if we have lock pick SETS we show (2) like old inventory manager
Todo:
80 lbs limit hard-coded on server, probably should be based on strength
Todo:
look at maybe aggregating lines where if we have lock pick SETS we show (2) like old inventory manager

Implements Instrument.

Definition at line 31 of file CargoManagement.cpp.

Here is the call graph for this function:

◆ RenderRow()

void CargoManagement::RenderRow ( const WCHAR *  row,
DWORD  color,
int  rowId,
std::string  type = "",
int  value = 0 
)
private

Definition at line 15 of file CargoManagement.cpp.

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

Member Data Documentation

◆ rowType

std::string CargoManagement::rowType[64]
private

Definition at line 100 of file Instrument.h.

◆ rowValue

int CargoManagement::rowValue[64] = {}
private

Definition at line 101 of file Instrument.h.


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