src/object/physical_obj.h File Reference

#include "physics.h"
#include "../tool/point.h"
#include "../tool/rectangle.h"

Include dependency graph for physical_obj.h:

This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Classes

class  PhysicalObj

Enumerations

enum  alive_t { ALIVE, DEAD, GHOST, DROWNED }

Functions

double MeterDistance (const Point2i &p1, const Point2i &p2)

Variables

const double PIXEL_PER_METER


Enumeration Type Documentation

enum alive_t

Enumerator:
ALIVE 
DEAD 
GHOST 
DROWNED 

Definition at line 35 of file physical_obj.h.

00036 {
00037   ALIVE,
00038   DEAD,
00039   GHOST,
00040   DROWNED
00041 } alive_t;


Function Documentation

double MeterDistance ( const Point2i p1,
const Point2i p2 
)

Definition at line 49 of file physical_obj.cpp.

00050 {
00051   return p1.Distance(p2) / PIXEL_PER_METER;
00052 }

Here is the call graph for this function:

Here is the caller graph for this function:


Variable Documentation

const double PIXEL_PER_METER

Definition at line 47 of file physical_obj.cpp.


Generated on Mon Jan 1 13:23:10 2007 for Wormux by  doxygen 1.4.7