____                _       __
    / __ )____  _____   | |     / /___ ___________
   / __  / __ \/ ___/   | | /| / / __ `/ ___/ ___/
  / /_/ / /_/ (__  )    | |/ |/ / /_/ / /  (__  )
 /_____/\____/____/     |__/|__/\__,_/_/  /____/

       A futuristic real-time strategy game.
          This file is part of Bos Wars.
(C) Copyright 2001-2007 by the Bos Wars and Stratagus Project. Distributed under the "GNU General Public License"

chunkparticle.cpp File Reference

The chunk particle. More...

#include <math.h>
#include "stratagus.h"
#include "particle.h"
#include "video.h"

Go to the source code of this file.

Functions

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)

Variables

static const int gravity = 32 * 12


Detailed Description

The chunk particle.

Definition in file chunkparticle.cpp.


Function Documentation

static float calculateScreenPos ( float  posy,
float  height 
) [static]

Definition at line 68 of file chunkparticle.cpp.

Referenced by CChunkParticle::draw(), and CChunkParticle::update().

static float deg2rad ( int  degrees  )  [inline, static]

Definition at line 40 of file chunkparticle.cpp.

Referenced by CChunkParticle::CChunkParticle().

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

Definition at line 81 of file chunkparticle.cpp.

Referenced by CChunkParticle::update().

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

Definition at line 86 of file chunkparticle.cpp.

References gravity.

Referenced by CChunkParticle::update().


Variable Documentation

const int gravity = 32 * 12 [static]

Definition at line 38 of file chunkparticle.cpp.

Referenced by CChunkParticle::CChunkParticle(), and getVerticalPosition().


Generated on Sat Feb 21 00:28:16 2009 for Bos Wars by  doxygen 1.5.6