Advanced Strategic Command
Public Member Functions | Friends | List of all members
ClipBoardBase Class Reference

#include <clipboard.h>

Public Member Functions

void clear ()
void addUnit (const Vehicle *unit)
void addBuilding (const Building *bld)
VehiclepasteUnit ()
VehiclepasteUnit (tnstream &stream)
void place (const MapCoordinate &pos)
void writeProperties (PropertyContainer &pc) const
void readProperties (PropertyContainer &pc)
void write (tnstream &stream)
void read (tnstream &stream)


struct Loki::CreateUsingNew< ClipBoardBase >

Detailed Description

Definition at line 37 of file clipboard.h.

Member Function Documentation

void ClipBoardBase::addBuilding ( const Building bld)

Definition at line 91 of file clipboard.cpp.

References tnstream::appending, Building::write(), and tnstream::writeInt().

void ClipBoardBase::addUnit ( const Vehicle unit)

Definition at line 81 of file clipboard.cpp.

References tnstream::appending, Vehicle::write(), and tnstream::writeInt().

void ClipBoardBase::clear ( )

Definition at line 46 of file clipboard.cpp.

References MemoryStreamStorage::clear().

Vehicle * ClipBoardBase::pasteUnit ( )

Definition at line 112 of file clipboard.cpp.

References tnstream::reading, and tnstream::readInt().

Referenced by place().

Vehicle * ClipBoardBase::pasteUnit ( tnstream stream)

Definition at line 103 of file clipboard.cpp.

References actmap, and Vehicle::newFromStream().

void ClipBoardBase::place ( const MapCoordinate pos)
void ClipBoardBase::read ( tnstream stream)

Definition at line 198 of file clipboard.cpp.

References MemoryStreamStorage::readfromstream(), and tnstream::readInt().

Referenced by readProperties().

void ClipBoardBase::readProperties ( PropertyContainer pc)
void ClipBoardBase::write ( tnstream stream)
void ClipBoardBase::writeProperties ( PropertyContainer pc) const

Definition at line 205 of file clipboard.cpp.

References PropertyContainer::addString().

Friends And Related Function Documentation

friend struct Loki::CreateUsingNew< ClipBoardBase >

Definition at line 44 of file clipboard.h.

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