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

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

◆ calculateScreenPos()

static float calculateScreenPos ( float  posy,
float  height 
)
static

◆ deg2rad()

static float deg2rad ( int  degrees)
inlinestatic

◆ getHorizontalPosition()

static float getHorizontalPosition ( int  initialVelocity,
float  trajectoryAngle,
float  time 
)
static

◆ getVerticalPosition()

static float getVerticalPosition ( int  initialVelocity,
float  trajectoryAngle,
float  time 
)
static

Variable Documentation

◆ gravity

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.