BWAPI  4.2.0
An API for interacting with Starcraft: Broodwar (1.16.1)
Public Types | Public Member Functions | List of all members
BWAPI::GameWrapper Class Reference

Public Types

typedef std::ostream &(* ostream_manipulator) (std::ostream &)

Public Member Functions

void flush ()
template<class T >
GameWrapperoperator<< (const T &in)
GameWrapperoperator<< (ostream_manipulator fn)

Detailed Description

Broodwar wrapper

Member Typedef Documentation

typedef std::ostream&(* BWAPI::GameWrapper::ostream_manipulator) (std::ostream &)

Definition of ostream_manipulator type for convenience.

Member Function Documentation

GameWrapper& BWAPI::GameWrapper::operator<< (const T & in)

Output stream operator for printing text to Broodwar.

Using this operator invokes Game::printf when a newline character is encountered.

References BWAPI::Broodwar.

GameWrapper& BWAPI::GameWrapper::operator<< (ostream_manipulator fn)

This is an overloaded member function, provided for convenience. It differs from the above function only in what argument(s) it accepts.

void BWAPI::GameWrapper::flush ()

Flushes the Broodwar stream, printing all text in the stream to the screen.