#include <order.h>
Inheritance diagram for TPProto::Order:

Public Member Functions | |
| Order () | |
| Default constructor. | |
| virtual | ~Order () |
| Destructor. | |
| void | packBuffer (Buffer *buf) |
| Pack this Order Frame into a Buffer. | |
| bool | unpackBuffer (Buffer *buf) |
| Unpack this Order from a Buffer. | |
| std::string | getName () |
| Gets the name of this order type. | |
| std::string | getDescription () |
| Gets the text description of this order type. | |
| unsigned int | getOrderType () |
| Gets the order type number of this order. | |
| unsigned int | getObjectId () |
| Gets the Object id this order is on. | |
| int | getSlot () |
| Gets the slot number for this order. | |
| unsigned int | getNumTurns () |
| Gets the number of turns until this order is completed. | |
| unsigned int | getNumParameters () |
| Gets the number of OrderParameters this order has. | |
| OrderParameter * | getParameter (unsigned int which) |
| Gets an OrderParameter. | |
| void | setObjectId (unsigned int oid) |
| Sets the Object id this order will be on. | |
| void | setSlot (int s) |
| Sets the slot number the order will be placed. | |
| void | setOrderType (boost::shared_ptr< OrderDescription > od) |
| Sets the order type using an OrderDescription. | |
| TPProto::Order::~Order | ( | ) | [virtual] |
Destructor.
Deletes the OrderParameters it contains.
| void TPProto::Order::packBuffer | ( | Buffer * | buf | ) | [virtual] |
Pack this Order Frame into a Buffer.
| buf | The Buffer to pack into. |
Implements TPProto::Frame.
| bool TPProto::Order::unpackBuffer | ( | Buffer * | buf | ) | [virtual] |
Unpack this Order from a Buffer.
| buf | The Buffer to unpack out of. |
Implements TPProto::Frame.
| std::string TPProto::Order::getName | ( | ) |
Gets the name of this order type.
| std::string TPProto::Order::getDescription | ( | ) |
Gets the text description of this order type.
| unsigned int TPProto::Order::getOrderType | ( | ) |
Gets the order type number of this order.
| unsigned int TPProto::Order::getObjectId | ( | ) |
| int TPProto::Order::getSlot | ( | ) |
Gets the slot number for this order.
Range starts at 0. -1 means the last slot.
| unsigned int TPProto::Order::getNumTurns | ( | ) |
Gets the number of turns until this order is completed.
| unsigned int TPProto::Order::getNumParameters | ( | ) |
Gets the number of OrderParameters this order has.
| OrderParameter * TPProto::Order::getParameter | ( | unsigned int | which | ) |
Gets an OrderParameter.
| which | The number of the parameter to get. |
| void TPProto::Order::setObjectId | ( | unsigned int | oid | ) |
| void TPProto::Order::setSlot | ( | int | s | ) |
Sets the slot number the order will be placed.
Starts from 0. -1 is the last slot.
| s | The slot number. |
| void TPProto::Order::setOrderType | ( | boost::shared_ptr< OrderDescription > | od | ) |
Sets the order type using an OrderDescription.
| od | The OrderDescription describing the order type required. |
1.5.1