Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

Ignore:
Timestamp:
Nov 13, 2007, 9:25:37 PM (16 years ago)
Author:
rgrieder
Message:
  • added a simple ammo dump
  • created BaseWeapon from WeaponManager
  • created the WeaponStation object
File:
1 edited

Legend:

Unmodified
Added
Removed
  • code/branches/main_reto_vs05/src/run_manager.cc

    r194 r198  
    5656#include "weapon/bullet.h"
    5757#include "weapon/bullet_manager.h"
    58 #include "weapon/weapon_manager.h"
     58#include "weapon/base_weapon.h"
    5959
    6060#include "run_manager.h"
     
    108108    // create a bullet manager
    109109    bulletManager_ = new BulletManager(sceneMgr_);
    110     WeaponManager::loadWeapons();
    111110
    112111
     
    213212    if (bulletManager_)
    214213      delete bulletManager_;
    215 
    216     WeaponManager::destroyWeapons();
    217214  }
    218215
     
    352349
    353350    if (keyboard_->isKeyDown(KC_G))
    354       playerShip_->getMainWeapon()->addAction(WeaponManager::RELOAD);
     351      playerShip_->getMainWeapon()->addAction(BaseWeapon::RELOAD);
    355352
    356353    if( keyboard_->isKeyDown(KC_ESCAPE) || keyboard_->isKeyDown(KC_Q) )
     
    421418    if(displayCameraDetails)
    422419      debugText_ = " | Speed = "
    423             + StringConverter::toString(playerShip_->getSpeed());
     420            + StringConverter::toString(playerShip_->getSpeed())
     421            + " | Left Ammo = "
     422            + StringConverter::toString(playerShip_
     423            ->getMainWeapon()->getAmmoState())
     424            + " | Ammo stock = "
     425            + StringConverter::toString(playerShip_->getAmmoStock());
    424426    // debugText_ = "P: " + StringConverter::toString(camera_
    425427    //      ->getDerivedPosition()) + " " + "O: "
Note: See TracChangeset for help on using the changeset viewer.