Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

Changeset 9826 in orxonox.OLD for branches/new_class_id/src/lib


Ignore:
Timestamp:
Sep 26, 2006, 1:00:17 AM (18 years ago)
Author:
bensch
Message:

some constnes

Location:
branches/new_class_id/src/lib/graphics/importer
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • branches/new_class_id/src/lib/graphics/importer/interactive_model.h

    r9715 r9826  
    3939    virtual void setAnimation(int animNum, int playbackMode = 0) = 0;
    4040    virtual void setAnimation(int firstFrame, int lastFrame, int fps, int bStoppable, int animPlayback) {}
    41     virtual int getAnimation() = 0;
     41    virtual int getAnimation() const = 0;
    4242
    4343    virtual bool isAnimationFinished() { return false; }
  • branches/new_class_id/src/lib/graphics/importer/md2/md2Model.h

    r9824 r9826  
    171171  virtual void setAnimation(int firstFrame, int lastFrame, int fps, int bStoppable, int animPlayback);
    172172  /**  returns the current animation @returns animation type */
    173   inline int getAnimation() { return this->animationState.type; }
     173  inline int getAnimation() const { return this->animationState.type; }
    174174  virtual void setAnimationSpeed(float speed) { this->animationSpeed = speed; }
    175 virtual bool isAnimationFinished() { return (this->animationState.currentFrame == this->animationState.endFrame )?true:false; }
     175virtual bool isAnimationFinished() const { return (this->animationState.currentFrame == this->animationState.endFrame )?true:false; }
    176176  /**  scales the current model @param scaleFactor: the factor [0..1] to use for scaling */
    177177  void scaleModel(float scaleFactor) { this->scaleFactor = scaleFactor;}
  • branches/new_class_id/src/lib/graphics/importer/md3/md3_model.h

    r8724 r9826  
    4545
    4646    virtual void setAnimation(int animNum, int playbackMode = 0) {}
    47     virtual int getAnimation() { return 0;}
     47    virtual int getAnimation() const { return 0;}
    4848
    4949    virtual void tick(float dt);
Note: See TracChangeset for help on using the changeset viewer.