src/object/physical_obj.cpp File Reference

#include <iostream>
#include "physical_obj.h"
#include "physics.h"
#include "objects_list.h"
#include "../game/config.h"
#include "../game/time.h"
#include "../map/map.h"
#include "../network/randomsync.h"
#include "../team/macro.h"
#include "../team/teams_list.h"
#include "../tool/debug.h"
#include "../tool/math_tools.h"
#include "../tool/point.h"
#include "../tool/rectangle.h"
#include "../weapon/ninja_rope.h"
#include "../weapon/launcher.h"

Include dependency graph for physical_obj.cpp:

Go to the source code of this file.

Functions

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

Variables

const int Y_OBJET_MIN = -10000
const int WATER_RESIST_FACTOR = 40
const double PIXEL_PER_METER = 40


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 = 40

Definition at line 47 of file physical_obj.cpp.

const int WATER_RESIST_FACTOR = 40

Definition at line 45 of file physical_obj.cpp.

const int Y_OBJET_MIN = -10000

Definition at line 44 of file physical_obj.cpp.


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