#include <design.h>
Inheritance diagram for TPProto::Design:

Public Member Functions | |
| Design () | |
| Default constructor. | |
| virtual | ~Design () |
| Required virtual destructor. | |
| void | packBuffer (Buffer *buf) |
| Pack into a Buffer, asserts. | |
| bool | unpackBuffer (Buffer *buf) |
| Unpack from a Buffer. Unpacks the Design frame from the buffer. | |
| uint32_t | getDesignId () const |
| Gets the Design id. | |
| uint64_t | getModTime () const |
| Gets the last modification time of this Design. | |
| std::set< uint32_t > | getCategories () const |
| Gets the categories this Design is in. | |
| std::string | getName () const |
| Gets the name of this Design. | |
| std::string | getDescription () const |
| Gets the description of this Design. | |
| uint32_t | getNumInUse () const |
| Gets the number of times this design is in use. If is 0xffffffff (ie, -1), then the design is not currently usable. | |
| uint32_t | getPlayerOwner () const |
| Gets the Player that owns this Design. Can be 0xffffffff (ie, -1) if the owner is not known. | |
| std::map< uint32_t, uint32_t > | getComponents () const |
| Gets the components that make up this design. | |
| std::string | getDesignFeedback () const |
| Gets the feedback on the design. | |
| std::map< uint32_t, std::string > | getPropertyValues () const |
| Gets the property values of this design. | |
| void TPProto::Design::packBuffer | ( | Buffer * | buf | ) | [virtual] |
Pack into a Buffer, asserts.
Packs this Design frame into the buffer. Since the frame only comes from the server, this method assert(0).
| buf | Buffer to pack into, ignored. |
Implements TPProto::Frame.
| bool TPProto::Design::unpackBuffer | ( | Buffer * | buf | ) | [virtual] |
Unpack from a Buffer. Unpacks the Design frame from the buffer.
| buf | The Buffer to unpack out of. |
Implements TPProto::Frame.
| uint64_t TPProto::Design::getModTime | ( | ) | const |
| std::set< uint32_t > TPProto::Design::getCategories | ( | ) | const |
| std::string TPProto::Design::getName | ( | ) | const |
| std::string TPProto::Design::getDescription | ( | ) | const |
| uint32_t TPProto::Design::getNumInUse | ( | ) | const |
Gets the number of times this design is in use. If is 0xffffffff (ie, -1), then the design is not currently usable.
| uint32_t TPProto::Design::getPlayerOwner | ( | ) | const |
| std::map< uint32_t, uint32_t > TPProto::Design::getComponents | ( | ) | const |
Gets the components that make up this design.
| std::string TPProto::Design::getDesignFeedback | ( | ) | const |
Gets the feedback on the design.
| std::map< uint32_t, std::string > TPProto::Design::getPropertyValues | ( | ) | const |
Gets the property values of this design.
1.5.1