_________ __                 __
        /   _____//  |_____________ _/  |______     ____  __ __  ______
        \_____  \\   __\_  __ \__  \\   __\__  \   / ___\|  |  \/  ___/
        /        \|  |  |  | \// __ \|  |  / __ \_/ /_/  >  |  /\___ \
       /_______  /|__|  |__|  (____  /__| (____  /\___  /|____//____  >
               \/                  \/          \//_____/            \/
    ______________________                           ______________________
                          T H E   W A R   B E G I N S
                   Stratagus - A free fantasy real time strategy game engine

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages
chunkparticle.cpp File Reference
#include <math.h>
#include "stratagus.h"
#include "particle.h"
#include "video.h"

chunkparticle.cpp - The chunk particle.

static const int gravity = 32 * 12
 
static float deg2rad (int degrees)
 
static float calculateScreenPos (float posy, float height)
 
static float getHorizontalPosition (int initialVelocity, float trajectoryAngle, float time)
 
static float getVerticalPosition (int initialVelocity, float trajectoryAngle, float time)
 

Function Documentation

static float calculateScreenPos ( float  posy,
float  height 
)
static
static float deg2rad ( int  degrees)
inlinestatic
static float getHorizontalPosition ( int  initialVelocity,
float  trajectoryAngle,
float  time 
)
static
static float getVerticalPosition ( int  initialVelocity,
float  trajectoryAngle,
float  time 
)
static

Variable Documentation

const int gravity = 32 * 12
static
(C) Copyright 1998-2012 by The Stratagus Project under the GNU General Public License.
All trademarks and copyrights on this page are owned by their respective owners.