Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

Ignore:
Timestamp:
Aug 22, 2006, 1:16:23 PM (19 years ago)
Author:
bensch
Message:

adapted many classes to the new ClassID System, now comes the hard part… Scripting… then Network… wow this will be so bad :/

File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/new_class_id/src/world_entities/weapons/weapon.h

    r8976 r9685  
    8787    Weapon ();
    8888    virtual ~Weapon ();
    89     static Weapon* createWeapon(ClassID weaponID);
     89    static Weapon* createWeapon(NewClassID weaponID);
    9090
    9191    void init();
     
    110110    /** @returns the Capabilities of this Weapon */
    111111    inline long getCapability() const { return this->capability; };
    112     void setProjectileType(ClassID projectile);
     112    void setProjectileType(NewClassID projectile);
    113113    void setProjectileTypeC(const std::string& projectile);
    114114    /** @returns The projectile's classID */
    115     inline ClassID getProjectileType() { return this->projectile; };
     115    inline NewClassID getProjectileType() { return this->projectile; };
    116116    /** @returns the FastFactory, that creates Projectiles of type getProjectile */
    117117    inline FastFactory* getProjectileFactory() { return this->projectileFactory; };
     
    230230    bool                   chargeable;                      //!< if the Weapon is charcheable (if true, the weapon will charge before it fires.)
    231231
    232     ClassID                projectile;                      //!< the projectile used for this weapon (since they should be generated via macro and the FastFactory, only the ClassID must be known.)
     232    NewClassID                projectile;                      //!< the projectile used for this weapon (since they should be generated via macro and the FastFactory, only the ClassID must be known.)
    233233    FastFactory*           projectileFactory;               //!< A factory, that produces and handles the projectiles.
    234234  };
Note: See TracChangeset for help on using the changeset viewer.