Classes | |
class | Application |
class | GLRenderSystem |
class | glutApp |
class | RenderSystem |
class | BehaviorInstance |
class | BehaviorTemplate |
class | BehaviorTemplateTable |
class | EntityInstance |
class | EntityPool |
class | EntityTemplate |
class | EntityTemplateTable |
class | GRunApplication |
class | InstancePool |
class | Interpreter |
class | KeyNameTable |
class | PEntity |
class | MoveBehavior |
class | DefaultEntity |
class | AlwaysMsg |
class | KeyEventMsg |
class | MessageInstance |
class | MsgFormat |
class | MessagePool |
class | MessageTemplate |
class | MessageTemplateTable |
class | System |
class | TemplateTable |
class | Variable |
class | VariableTableInstance |
class | VariableEntry |
class | InitArgFormat |
class | VariableTableTemplate |
class | DeclParser |
The parser class for the declarative parser. More... | |
class | ExecException |
class | ExecLoop |
class | ImpParser |
The class for parsing imperative code. This class is the parser for imperative sections. The only function parseImperative does just that. More... | |
class | OpSeq |
class | UnresOpSeq |
class | ProjFileParser |
Parses input This is the class that wraps the function that takes a project file name and reads all its files and parses them and puts them into various TemplateTables. More... | |
class | Error |
class | Timer |
Typedefs | |
typedef boost::shared_ptr< Application > | ApplicationPtr |
typedef boost::shared_ptr< GLRenderSystem > | GLRenderSystemPtr |
typedef boost::shared_ptr< glutApp > | glutAppPtr |
typedef boost::shared_ptr< RenderSystem > | RenderSystemPtr |
typedef boost::shared_ptr< BehaviorInstance > | BehaviorInstancePtr |
typedef boost::shared_ptr< BehaviorTemplate > | BehaviorTemplatePtr |
typedef boost::shared_ptr< BehaviorTemplateTable > | BehaviorTemplateTablePtr |
typedef boost::shared_ptr< EntityInstance > | EntityInstancePtr |
typedef boost::shared_ptr< EntityPool > | EntityPoolPtr |
typedef boost::shared_ptr< EntityTemplate > | EntityTemplatePtr |
typedef boost::shared_ptr< EntityTemplateTable > | EntityTemplateTablePtr |
typedef boost::shared_ptr< GRunApplication > | GRunApplicationPtr |
typedef boost::shared_ptr< InstancePool > | InstancePoolPtr |
typedef size_t | Key |
typedef std::string | Name |
typedef boost::shared_ptr< MessageInstance > | MessageInstancePtr |
typedef boost::shared_ptr< MessagePool > | MessagePoolPtr |
typedef boost::shared_ptr< MessageTemplate > | MessageTemplatePtr |
typedef boost::shared_ptr< MessageTemplateTable > | MessageTemplateTablePtr |
typedef boost::shared_ptr< System > | SystemPtr |
typedef std::vector< Variable::Value > | ArgList |
typedef boost::shared_ptr< ArgList > | ArgListPtr |
typedef boost::shared_ptr< TemplateTable > | TemplateTablePtr |
typedef boost::shared_ptr< Variable > | VariablePtr |
typedef size_t | ID |
typedef boost::shared_ptr< VariableTableInstance > | VariableTableInstancePtr |
typedef boost::shared_ptr< InitArgFormat > | InitArgFormatPtr |
typedef std::vector< InitArgFormat > | InitFormat |
typedef boost::shared_ptr< InitFormat > | InitFormatPtr |
typedef boost::shared_ptr< VariableTableTemplate > | VariableTableTemplatePtr |
typedef boost::shared_ptr< OpSeq > | OpSeqPtr |
typedef boost::shared_ptr< MessageTemplateTable > | MessageTemplateTablePtr |
typedef boost::shared_ptr< EntityTemplateTable > | EntityTemplateTablePtr |
typedef boost::shared_ptr< UnresOpSeq > | UnresOpSeqPtr |
Functions | |
std::ostream & | operator<< (std::ostream &lhs, const Variable &rhs) |
std::ostream & | operator<< (std::ostream &lhs, const Variable::Type &rhs) |
std::ostream & | operator<< (std::ostream &lhs, const Variable::Value &rhs) |
void | PrintValue (const Variable::Value &value, Variable::Type type, std::ostream &os) |
void | DrawShip () |
void | DrawAsteroid () |
void | DrawBullet () |
double | DegreesToRadians (double angle) |
double | RadiansToDegrees (double angle) |
void | GetVectorFromAngle (double angle, double &x, double &y, double length) |
double | randFloat (double min, double max) |
double | DistanceBetween (double x1, double y1, double x2, double y2) |
typedef std::vector<Variable::Value> green::ArgList |
This is the type used for an argument list, used to instantiate an instance of a template.
typedef size_t green::ID |
This is the unique ID of this particular instance
typedef size_t green::Key |
Key is an integer value representing a unique entry in the table. Keys range from 0 to the number of entries in the table - 1. All Keys in that range are valid, unique entries in the table.
typedef std::string green::Name |
All variables in a KeyNameTable have a "name", which is of this type.
double green::DegreesToRadians | ( | double | angle | ) | [inline] |
Convert an angle from degrees to radians.
angle | The angle in degrees. |
double green::DistanceBetween | ( | double | x1, | |
double | y1, | |||
double | x2, | |||
double | y2 | |||
) | [inline] |
Calculates the actual distance between two points. Slower than DistanceBetweenSquared (not yet written), but gives an exact value.
x1 | x component of the first point. | |
y1 | y component of the first point. | |
x2 | x component of the second point. | |
y2 | y component of the second point. |
void green::DrawAsteroid | ( | ) |
This just draws a crazy randomized... thing.. doesn't really look like an asteroid yet.
void green::DrawBullet | ( | ) |
Draws a line from the origin to a point on the positive x axis a little ways away.
void green::DrawShip | ( | ) |
This just draws a simple triangle inscribed on a small circle so that rotations are smooth. The triangle is "pointed" towards the positive x axis.
void green::GetVectorFromAngle | ( | double | angle, | |
double & | x, | |||
double & | y, | |||
double | length | |||
) | [inline] |
Given an angle and a length, sets x and y to a vector of that length with that angle from the positive x axis (positive angles go counter- clockwise).
angle | The angle from the positive x axis, with counterclockwise being positive angles. | |
x | Function sets this to the x component of the resulting vector. | |
y | function sets this to the y component of the resulting vector. | |
length | The required length of the vector needed. |
std::ostream& green::operator<< | ( | std::ostream & | lhs, | |
const Variable::Value & | rhs | |||
) | [inline] |
Overload the << operator for std::ostream and Variable::Value
lhs | The output stream to print to. | |
rhs | The Variable::Value to print |
std::ostream& green::operator<< | ( | std::ostream & | lhs, | |
const Variable::Type & | rhs | |||
) | [inline] |
Overload the << operator for std::ostream and Variable::Type
lhs | The output stream to print to. | |
rhs | The Variable::Type to print |
std::ostream& green::operator<< | ( | std::ostream & | lhs, | |
const Variable & | rhs | |||
) | [inline] |
Overload the << operator for std::ostream and Variable. Uses Variable::Print internally.
lhs | The output stream to Print to. | |
rhs | The Variable to Print. |
void green::PrintValue | ( | const Variable::Value & | value, | |
Variable::Type | type, | |||
std::ostream & | os | |||
) | [inline] |
Print a Variable::Value based on a Variable::Type
value | the value to print | |
type | the type of value to print | |
os | The ostream to print to |
double green::RadiansToDegrees | ( | double | angle | ) | [inline] |
Convert an angle from radians to degrees.
angle | The angle in radians. |
double green::randFloat | ( | double | min, | |
double | max | |||
) | [inline] |
Generate a random double in a specific range.
min | The minimum value of the random number. | |
max | The maximum value of the random number. |