BWAPI  4.1.2
An API for interacting with Starcraft: Broodwar (1.16.1)
 All Classes Namespaces Functions Variables Typedefs Enumerations Enumerator Friends Modules
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

template<class T >
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.

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.