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

missile_parabolic.cpp File Reference
#include <stdio.h>
#include "stratagus.h"
#include "missile.h"
#include "luacallback.h"
#include "map.h"
#include "unit_find.h"

Functions

missile_parabolic.cpp - The missile Parabolic.
static bool ParabolicMissile (Missile &missile)
 

Function Documentation

◆ ParabolicMissile()

static bool ParabolicMissile ( Missile missile)
static

Calculate parabolic trajectories.

Parameters
missileMissile pointer.
Returns
true if target is reached, false otherwise
Todo:
Find good values for ZprojToX and Y
(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.