Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

Ignore:
Timestamp:
Nov 11, 2007, 2:24:50 PM (16 years ago)
Author:
rgrieder
Message:
  • added primary and secondary fire in continuous mode
  • weapon manager yet very inflexible (one weapon, static values, etc.)
File:
1 edited

Legend:

Unmodified
Added
Removed
  • code/branches/main_reto_vs05/src/weapon/weapon_manager.h

    r189 r194  
    4444      NOTHING  = 0,
    4545      RELOAD   = 1,
    46       ZOOM_IN  = 2,
    47       ZOOM_OUT = 3
     46      CHANGE_AMMO  = 2,
     47      SPECIAL = 3
    4848    };
    4949
     
    5353      PRIMARY_FIRE = 1,
    5454      SECONDARY_FIRE = 2,
    55       RELOADING = 4
     55      RELOADING = 3,
     56      CHANGING_AMMO = 4,
    5657    };
    5758
     
    7778    void primaryFire();
    7879
     80    void primaryFiring(unsigned int);
     81
    7982    void secondaryFire();
     83
     84    void secondaryFiring(unsigned int);
    8085
    8186  public:
     
    97102    bool secondaryFireRequest_;
    98103
     104    unsigned long actionStartTime_;
     105
    99106    State currentState_;
     107    bool secondaryFired_;
    100108
    101     Action *actionList_;
    102     int actionListReadIndex_;
    103     int actionListWriteIndex_;
     109    Action nextAction_;
     110    bool actionAdded_;
     111    unsigned long timeSinceNextActionAdded_;
     112    static const unsigned long nextActionValidityPeriod_ = 500;
    104113
    105114    static Weapon **weaponList_s;
Note: See TracChangeset for help on using the changeset viewer.