_________ __ __ / _____// |_____________ _/ |______ ____ __ __ ______ \_____ \\ __\_ __ \__ \\ __\__ \ / ___\| | \/ ___/ / \| | | | \// __ \| | / __ \_/ /_/ > | /\___ \ /_______ /|__| |__| (____ /__| (____ /\___ /|____//____ > \/ \/ \//_____/ \/ ______________________ ______________________ T H E W A R B E G I N S Stratagus - A free fantasy real time strategy game engine
#include <unitptr.h>
Public Member Functions | |
CUnitPtr () | |
~CUnitPtr () | |
operator CUnit * () | |
operator CUnit * () const | |
CUnit & | operator* () |
CUnit * | operator-> () const |
bool | operator== (CUnit *u) const |
bool | operator!= (CUnit *u) const |
unitptr.cpp - The units ptr. | |
CUnitPtr (CUnit *u) | |
CUnitPtr (const CUnitPtr &u) | |
void | Reset () |
CUnitPtr & | operator= (CUnit *u) |
Class to ease the ref counting of each CUnit instance.
|
inline |
CUnitPtr::CUnitPtr | ( | CUnit * | u | ) |
CUnitPtr::CUnitPtr | ( | const CUnitPtr & | u | ) |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
void CUnitPtr::Reset | ( | ) |