Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

Changeset 7173 in orxonox.OLD for trunk/src


Ignore:
Timestamp:
Feb 21, 2006, 6:01:31 PM (19 years ago)
Author:
bensch
Message:

trunk: minor

Location:
trunk/src/world_entities
Files:
5 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/world_entities/camera.cc

    r7108 r7173  
    8080
    8181/**
    82  *  sets the Field of View to fofy
    83  * @param fovy new field of view factor (in degrees)
    84 */
    85 void Camera::setFovy(float fovy)
    86 {
    87   this->fovy = fovy;
    88 }
    89 
    90 /**
    9182 * Sets a new clipping region
    9283 * @param nearClip The near clip plane
     
    152143
    153144
    154   float tmpFovy = (this->toFovy - this->fovy) ;
     145  float tmpFovy = (this->toFovy - this->fovy);
    155146  if (tmpFovy > 0.01)
    156147    this->fovy += tmpFovy * fabsf(dt);
  • trunk/src/world_entities/camera.h

    r7108 r7173  
    4141
    4242  void setAspectRatio(float aspectRatio);
    43   void setFovy(float fovy);
    4443  void setClipRegion(float nearClip, float farClip);
     44
     45  /** @param fovy new field of view factor (in degrees) */
     46  void setFovy(float fovy) { this->fovy = fovy; };
     47  /** @param fovy new field of view factor (in degrees) to iterate to */
     48  void setToFovy(float toFovy) { this->toFovy = toFovy; };
    4549
    4650  void setViewMode(ViewMode mode);
  • trunk/src/world_entities/playable.cc

    r7121 r7173  
    114114  if (this->currentPlayer != NULL)
    115115    this->currentPlayer->weaponConfigChanged();
     116}
     117
     118/**
     119 * @brief sets the CameraMode.
     120 * @param cameraMode: the Mode to switch to.
     121 */
     122void Playable::setCameraMode(unsigned int cameraMode)
     123{
     124
    116125}
    117126
  • trunk/src/world_entities/playable.h

    r7118 r7173  
    5050    void attachCamera();
    5151    void detachCamera();
     52    virtual void setCameraMode(unsigned int cameraMode = 0);
    5253
    5354    virtual void collidesWith(WorldEntity* entity, const Vector& location);
  • trunk/src/world_entities/space_ships/space_ship.cc

    r7122 r7173  
    2020#include "space_ship.h"
    2121
    22 #include "objModel.h"
    2322#include "resource_manager.h"
    2423
    25 #include "weapons/weapon_manager.h"
    2624#include "weapons/test_gun.h"
    2725#include "weapons/turret.h"
Note: See TracChangeset for help on using the changeset viewer.