hoa_map::private_map::MapObject_Ptr_Less Struct Reference

This is a predicate used to sort MapObjects in correct draw order. More...

#include <map_objects.h>

List of all members.

Public Member Functions

const bool operator() (const MapObject *a, const MapObject *b)


Detailed Description

This is a predicate used to sort MapObjects in correct draw order.

Returns:
True if the MapObject pointed by a should be drawn behind MapObject pointed by b
Note:
A simple '<' operator cannot be used with the sorting algorithm because it is sorting pointers.

Definition at line 282 of file map_objects.h.


Member Function Documentation

const bool hoa_map::private_map::MapObject_Ptr_Less::operator() ( const MapObject a,
const MapObject b 
) [inline]

Definition at line 283 of file map_objects.h.

References hoa_map::private_map::MapObject::y_offset, and hoa_map::private_map::MapObject::y_position.


The documentation for this struct was generated from the following file:
Generated on Fri Jul 6 23:14:53 2007 for Hero of Allacrost by  doxygen 1.5.1