____ _ __
/ __ )____ _____ | | / /___ ___________
/ __ / __ \/ ___/ | | /| / / __ `/ ___/ ___/
/ /_/ / /_/ (__ ) | |/ |/ / /_/ / / (__ )
/_____/\____/____/ |__/|__/\__,_/_/ /____/
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"
#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 |
Definition in file chunkparticle.cpp.
| 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] |
| static float getHorizontalPosition | ( | int | initialVelocity, | |
| float | trajectoryAngle, | |||
| float | time | |||
| ) | [static] |
| static float getVerticalPosition | ( | int | initialVelocity, | |
| float | trajectoryAngle, | |||
| float | time | |||
| ) | [static] |
Definition at line 86 of file chunkparticle.cpp.
References gravity.
Referenced by CChunkParticle::update().
const int gravity = 32 * 12 [static] |
Definition at line 38 of file chunkparticle.cpp.
Referenced by CChunkParticle::CChunkParticle(), and getVerticalPosition().
1.5.6