Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

Changeset 5766 in orxonox.OLD


Ignore:
Timestamp:
Nov 24, 2005, 6:03:24 PM (18 years ago)
Author:
bensch
Message:

orxonox/trunk: merged the GuidedMissiles to the trunk, without the changed aiming_turret

Location:
trunk
Files:
8 edited
2 copied

Legend:

Unmodified
Added
Removed
  • trunk/aclocal.m4

    r5479 r5766  
    1 # generated automatically by aclocal 1.9.6 -*- Autoconf -*-
     1# generated automatically by aclocal 1.9.5 -*- Autoconf -*-
    22
    33# Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2002, 2003, 2004,
     
    2929# This function is AC_REQUIREd by AC_INIT_AUTOMAKE.
    3030AC_DEFUN([AM_SET_CURRENT_AUTOMAKE_VERSION],
    31          [AM_AUTOMAKE_VERSION([1.9.6])])
     31         [AM_AUTOMAKE_VERSION([1.9.5])])
    3232
    3333# AM_AUX_DIR_EXPAND                                         -*- Autoconf -*-
  • trunk/src/Makefile.am

    r5750 r5766  
    6868                  world_entities/weapons/test_bullet.cc \
    6969                  world_entities/weapons/rocket.cc \
     70                  world_entities/weapons/guided_missile.cc \
    7071                  world_entities/weapons/laser.cc \
    7172                  world_entities/weapons/aim.cc \
     
    106107                 world_entities/weapons/test_bullet.h \
    107108                 world_entities/weapons/rocket.h \
     109                 world_entities/weapons/guided_missile.h \
    108110                 world_entities/weapons/laser.h \
    109111                 world_entities/weapons/aim.h \
  • trunk/src/defs/class_id.h

    r5750 r5766  
    143143  CL_BOMB                       =    0x00000243,
    144144  CL_GROUND_TURRET              =    0x00000244,
     145  CL_GUIDED_MISSILE             =    0x00000245,
    145146
    146147  // gamePlay (range from 0x00000500 0x000005ff)
  • trunk/src/lib/gui/gtk_gui/gui_keys.cc

    r5475 r5766  
    119119        pKeysBox->fill(addKey(CONFIG_NAME_PLAYER_LEFT, "LEFT"));
    120120        pKeysBox->fill(addKey(CONFIG_NAME_PLAYER_RIGHT, "RIGHT"));
    121         pKeysBox->fill(addKey(CONFIG_NAME_PLAYER_FIRE, "BUTTON_LEFT"));
     121        pKeysBox->fill(addKey(CONFIG_NAME_PLAYER_FIRE, "MOUSE_LEFT"));
    122122        pKeysBox->fill(addKey(CONFIG_NAME_PLAYER_NEXT_WEAPON, "m"));
    123123        pKeysBox->fill(addKey(CONFIG_NAME_PLAYER_PREV_WEAPON, "n"));
  • trunk/src/lib/gui/gtk_gui/gui_update.cc

    r5241 r5766  
    2929#include <stdio.h>
    3030#include <stdlib.h>
     31#include "globals.h"
    3132
    3233using namespace std;
  • trunk/src/world_entities/weapons/projectile.cc

    r5511 r5766  
    3838  this->lifeCycle = 0.0;
    3939  this->lifeSpan = 1.0f; /* sec */
     40  this->target = NULL;
    4041
    4142  this->remove();
     
    9899}
    99100
     101
     102
     103void Projectile::setTarget(PNode* target)
     104{
     105
     106  if (this->target == NULL)
     107     this->target = new PNode();
     108  this->target->setParent(target);
     109}
     110
     111
    100112/**
    101113 * signal tick, time dependent things will be handled here
  • trunk/src/world_entities/weapons/projectile.h

    r5500 r5766  
    3131    inline bool isChageable() { return this->bChargeable; };
    3232
     33    void setTarget(PNode* target);
    3334
    3435    /** @brief This is called, when the Projectile is Emitted */
     
    5455
    5556    Vector                velocity;                  //!< velocity of the projectile.
     57
     58    PNode*                target;                    //!< A target for guided Weapons.
    5659};
    5760
  • trunk/src/world_entities/weapons/turret.cc

    r5750 r5766  
    138138    pj->setVelocity(this->getVelocity()+(this->getAbsDir().apply(Vector(1,0,0))*100.0 + VECTOR_RAND(13)
    139139            /*target->getAbsCoor() - this->getAbsCoor()*/)*.5);//this->getVelocity());
     140 
    140141
    141142  pj->setParent(NullParent::getInstance());
Note: See TracChangeset for help on using the changeset viewer.