#include <fleet.h>
Inheritance diagram for TPProto::Fleet:

Public Member Functions | |
| Fleet () | |
| Default constructor. | |
| virtual | ~Fleet () |
| Destructor. | |
| bool | unpackBuffer (Buffer *buf) |
| Unpacks the Fleet Object Frame from a Buffer. | |
| void | visit (ObjectVisitor *vis) |
| Visit the Fleet using an ObjectVisitor. | |
| int | getOwner () |
| Get the playerid of the owner of the fleet. | |
| unsigned int | getDamage () |
| Get the amount of damage done to the fleet. | |
| int | numShips (int stype) |
| Get the number of ships of a type that are in the fleet. | |
| std::map< int32_t, int32_t > | getShips () const |
| Gets a map of shiptype to number of ships. | |
| bool TPProto::Fleet::unpackBuffer | ( | Buffer * | buf | ) | [virtual] |
Unpacks the Fleet Object Frame from a Buffer.
Reimplemented from TPProto::Object.
| void TPProto::Fleet::visit | ( | ObjectVisitor * | vis | ) |
| int TPProto::Fleet::getOwner | ( | ) |
Get the playerid of the owner of the fleet.
| unsigned int TPProto::Fleet::getDamage | ( | ) |
Get the amount of damage done to the fleet.
| int TPProto::Fleet::numShips | ( | int | stype | ) |
Get the number of ships of a type that are in the fleet.
| stype | The type of ship. |
| std::map< int32_t, int32_t > TPProto::Fleet::getShips | ( | ) | const |
Gets a map of shiptype to number of ships.
1.5.1