Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

Ignore:
Timestamp:
Sep 1, 2006, 8:06:39 PM (19 years ago)
Author:
bensch
Message:

renamed newclassid to classid and newobjectlist to objectlist

File:
1 edited

Legend:

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

    r9705 r9715  
    8383class Weapon : public WorldEntity
    8484{
    85   NewObjectListDeclaration(Weapon);
     85  ObjectListDeclaration(Weapon);
    8686
    8787  public:
     
    8989    Weapon ();
    9090    virtual ~Weapon ();
    91     static Weapon* createWeapon(const NewClassID& weaponID);
     91    static Weapon* createWeapon(const ClassID& weaponID);
    9292    static Weapon* createWeapon(const std::string& weaponName);
    9393
     
    113113    /** @returns the Capabilities of this Weapon */
    114114    inline long getCapability() const { return this->capability; };
    115     void setProjectileType(const NewClassID& projectile);
     115    void setProjectileType(const ClassID& projectile);
    116116    void setProjectileTypeC(const std::string& projectile);
    117117    /** @returns The projectile's classID */
    118     inline NewClassID getProjectileType() { return this->projectile; };
     118    inline ClassID getProjectileType() { return this->projectile; };
    119119    /** @returns the FastFactory, that creates Projectiles of type getProjectile */
    120120    inline FastFactory* getProjectileFactory() { return this->projectileFactory; };
     
    233233    bool                   chargeable;                      //!< if the Weapon is charcheable (if true, the weapon will charge before it fires.)
    234234
    235     NewClassID                projectile;                      //!< the projectile used for this weapon (since they should be generated via macro and the FastFactory, only the ClassID must be known.)
     235    ClassID                projectile;                      //!< the projectile used for this weapon (since they should be generated via macro and the FastFactory, only the ClassID must be known.)
    236236    FastFactory*           projectileFactory;               //!< A factory, that produces and handles the projectiles.
    237237  };
Note: See TracChangeset for help on using the changeset viewer.