mElite
1.0
An Elite clone based on TextElite by Jan-Philipp Kappmeier and Melanie Schmidt.
|
#include <txtelite.h>
Public Member Functions | |
TextEliteGame (void(*vuserErrorFnc)(std::string), void(*vprogErrorFnc)(std::string)) | |
~TextEliteGame (void) | |
int | getCurrentSystem () |
std::vector< int > * | getLocalSystems () |
std::vector< int > * | getSystemsInRectangle (unsigned int left, unsigned int right, unsigned int bottom, unsigned int top) |
System | getSystemInformation (int number) |
bool | systemIsReachable (int number) |
bool | systemIsInLocalRange (int number) |
float | getFuel () |
float | getMaxFuel () |
std::vector< MarketplaceItem > * | getCurrentMarketplace () |
std::vector< int > * | getCurrentCargo () |
unsigned int | getFreeHoldspace () |
unsigned int | getCargoBaySize () |
int32 | getCurrentCash () |
int | getFuelCost () |
bool | tradegoodIsInTons (int number) |
void | performJump (int number) |
std::string | performPurchase (uint number, uint amount) |
std::string | performSale (uint number, uint amount) |
void | buyFuel (float amount) |
void | setFuel (uint amount) |
void | setCash (signed long amount) |
void | setCargoBay (uint amount) |
void | initValues () |
govTypes | getEnumOfGovernment (uint gov) |
econTypes | getEnumOfEconomy (uint econ) |
Definition at line 141 of file txtelite.h.
TextEliteGame::TextEliteGame | ( | void(*)(std::string) | vuserErrorFnc, |
void(*)(std::string) | vprogErrorFnc | ||
) |
Definition at line 33 of file txtelite.cpp.
TextEliteGame::~TextEliteGame | ( | void | ) |
Definition at line 76 of file txtelite.cpp.
void TextEliteGame::buyFuel | ( | float | amount | ) |
Definition at line 424 of file txtelite.cpp.
unsigned int TextEliteGame::getCargoBaySize | ( | ) |
Definition at line 232 of file txtelite.cpp.
std::vector< int > * TextEliteGame::getCurrentCargo | ( | ) |
Definition at line 214 of file txtelite.cpp.
int32 TextEliteGame::getCurrentCash | ( | ) |
Definition at line 243 of file txtelite.cpp.
std::vector< MarketplaceItem > * TextEliteGame::getCurrentMarketplace | ( | ) |
Definition at line 200 of file txtelite.cpp.
int TextEliteGame::getCurrentSystem | ( | ) |
/*jm***************** * new functions: get functions ****************************
Definition at line 83 of file txtelite.cpp.
Definition at line 629 of file txtelite.cpp.
Definition at line 613 of file txtelite.cpp.
unsigned int TextEliteGame::getFreeHoldspace | ( | ) |
Definition at line 226 of file txtelite.cpp.
float TextEliteGame::getFuel | ( | ) |
Definition at line 185 of file txtelite.cpp.
int TextEliteGame::getFuelCost | ( | ) |
Definition at line 249 of file txtelite.cpp.
std::vector< int > * TextEliteGame::getLocalSystems | ( | ) |
Definition at line 89 of file txtelite.cpp.
float TextEliteGame::getMaxFuel | ( | ) |
Definition at line 191 of file txtelite.cpp.
System TextEliteGame::getSystemInformation | ( | int | number | ) |
Definition at line 132 of file txtelite.cpp.
std::vector< int > * TextEliteGame::getSystemsInRectangle | ( | unsigned int | left, |
unsigned int | right, | ||
unsigned int | bottom, | ||
unsigned int | top | ||
) |
Definition at line 106 of file txtelite.cpp.
void TextEliteGame::initValues | ( | ) |
Definition at line 469 of file txtelite.cpp.
void TextEliteGame::performJump | ( | int | number | ) |
Definition at line 304 of file txtelite.cpp.
Definition at line 337 of file txtelite.cpp.
Definition at line 392 of file txtelite.cpp.
void TextEliteGame::setCargoBay | ( | uint | amount | ) |
Definition at line 285 of file txtelite.cpp.
void TextEliteGame::setCash | ( | signed long | amount | ) |
Definition at line 278 of file txtelite.cpp.
void TextEliteGame::setFuel | ( | uint | amount | ) |
Definition at line 268 of file txtelite.cpp.
bool TextEliteGame::systemIsInLocalRange | ( | int | number | ) |
Definition at line 178 of file txtelite.cpp.
bool TextEliteGame::systemIsReachable | ( | int | number | ) |
Definition at line 170 of file txtelite.cpp.
bool TextEliteGame::tradegoodIsInTons | ( | int | number | ) |
Definition at line 257 of file txtelite.cpp.