13 lines
282 B
C
13 lines
282 B
C
|
|
#pragma once
|
||
|
|
class Entity;
|
||
|
|
class Chunk;
|
||
|
|
|
||
|
|
class DistanceChunkSorter : public std::binary_function<const Chunk *,const Chunk *,bool>
|
||
|
|
{
|
||
|
|
private:
|
||
|
|
double ix, iy, iz;
|
||
|
|
|
||
|
|
public:
|
||
|
|
DistanceChunkSorter(shared_ptr<Entity> player);
|
||
|
|
bool operator()(const Chunk *a, const Chunk *b) const;
|
||
|
|
};
|