Planeshift
Public Member Functions | Public Attributes

NearNaturalResource Class Reference

This class keeps the hit of natural resources found for the player and allows ordering of them in an array. More...

#include <workmanager.h>

List of all members.

Public Member Functions

 NearNaturalResource (NaturalResource *res, float distance)
bool operator< (const NearNaturalResource &oth) const

Public Attributes

float dist
NaturalResourceresource

Detailed Description

This class keeps the hit of natural resources found for the player and allows ordering of them in an array.

Definition at line 125 of file workmanager.h.


Constructor & Destructor Documentation

NearNaturalResource::NearNaturalResource ( NaturalResource res,
float  distance 
) [inline]

Definition at line 128 of file workmanager.h.


Member Function Documentation

bool NearNaturalResource::operator< ( const NearNaturalResource oth) const [inline]

Definition at line 131 of file workmanager.h.


Member Data Documentation

Definition at line 130 of file workmanager.h.

Definition at line 129 of file workmanager.h.


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