Bike-X  0.8
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros
Unity Class Reference

#include "Unity.h"

Collaboration diagram for Unity:
Collaboration graph

Public Member Functions

 Unity ()
 
 ~Unity ()
 
void init ()
 
void initBuild ()
 
int getPlayerAltitude ()
 
void setPlayerPosition (double x, double z)
 
void setPlayerRotation (double x, double y, double z)
 
void setInfo (const char *info, int chars_written)
 
void render ()
 

Data Fields

int buildPid
 
std::ifstream altitudeFile
 
std::ofstream infoFile
 
std::ofstream rotationFile
 
std::ofstream positionFile
 

Detailed Description

Definition at line 15 of file Unity.h.

Constructor & Destructor Documentation

Unity::Unity ( )

Definition at line 16 of file Unity.cpp.

Unity::~Unity ( )

Definition at line 22 of file Unity.cpp.

Member Function Documentation

int Unity::getPlayerAltitude ( )

Get y value from Player in the virtual world

Definition at line 92 of file Unity.cpp.

void Unity::init ( )

Do necessary stuff to initialize Unity model

Definition at line 74 of file Unity.cpp.

void Unity::initBuild ( )

Initialize build

Definition at line 45 of file Unity.cpp.

void Unity::render ( )

Tells Unity that everything is ready for render next frames

Definition at line 195 of file Unity.cpp.

void Unity::setInfo ( const char *  info,
int  chars_written 
)

Set a text information of the screen

Definition at line 178 of file Unity.cpp.

void Unity::setPlayerPosition ( double  x,
double  z 
)

Set ONLY x and z positions, because y value is NOT GONNA BE SET BY US

Definition at line 144 of file Unity.cpp.

void Unity::setPlayerRotation ( double  x,
double  y,
double  z 
)

Set x, y and z values for player rotation

Definition at line 161 of file Unity.cpp.

Field Documentation

std::ifstream Unity::altitudeFile

Files in which we're gonna use to exchange some information with Unity app

Definition at line 28 of file Unity.h.

int Unity::buildPid

In order to have the virtual build working, we need to create a whole new process for it, and this is its pid

Definition at line 23 of file Unity.h.

std::ofstream Unity::infoFile

Definition at line 29 of file Unity.h.

std::ofstream Unity::positionFile

Definition at line 31 of file Unity.h.

std::ofstream Unity::rotationFile

Definition at line 30 of file Unity.h.


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