Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

Ignore:
Timestamp:
Dec 19, 2006, 8:00:52 PM (17 years ago)
Author:
nicolasc
Message:

some beautifications, nothing new

File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/playability/src/world_entities/projectiles/hbolt.cc

    r10081 r10104  
    22   orxonox - the future of 3D-vertical-scrollers
    33
    4    Copyright (C) 2004 orx
     4   Copyright (C) 2004-2006 orx
    55
    66   This program is free software; you can redistribute it and/or modify
     
    1010
    1111   ### File Specific
    12    main-programmer: Patrick Boenzli
     12   main-programmer: Nicolas Schlumberger, Marc Schaerrer
    1313   co-programmer: Benjamin Grauer
    1414
     
    2929// #include "effects/billboard.h"
    3030#include "space_ships/space_ship.h"
    31 
    3231
    3332#include "class_id_DEPRECATED.h"
     
    6059  this->halo->setSize(.65, .65);
    6160  this->halo->setTexture("hbolt_halo2.png");
    62 
    6361}
    6462
     
    118116void HBolt::collidesWith(WorldEntity* entity, const Vector& location)
    119117{
    120   PRINTF(0)("Collision with HBolt\n");
    121   if (this->hitEntity != entity && entity->isA(CL_NPC))
     118  printf("Collision with HBolt\n");
     119  if (this->hitEntity != entity/* && entity->isA(CL_NPC)*/ || entity == this->target)
    122120    this->destroy( entity );
    123121  this->hitEntity = entity;
    124122  dynamic_cast<SpaceShip*>(entity)->damage( this->getPhysDamage(), this->getElecDamage());
    125   this->deactivate();
    126 }
    127 
    128 
    129 void HBolt::updateAngle (float time)
    130 {
    131   this->angle += this->rotationSpeed * time;
     123//   this->deactivate();
    132124}
    133125
     
    146138    this->deactivate();
    147139
    148   this->updateAngle(dt);
     140  this->angle += this->rotationSpeed * dt;
    149141
    150142
     
    183175  this->getModel()->draw();
    184176
    185 //   this->mat->select();
    186 /*   dynamic_cast<StaticModel*>(this->getModel())->draw();*/
    187 //   this->mat->select();
    188 //   dynamic_cast<StaticModel*>(this->getModel())->draw();
    189 //   this->mat->unselect();
    190 
    191 
    192177  glPopMatrix();
    193178}
Note: See TracChangeset for help on using the changeset viewer.