Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

Changeset 4490 in orxonox.OLD for orxonox


Ignore:
Timestamp:
Jun 3, 2005, 1:33:01 AM (19 years ago)
Author:
bensch
Message:

orxonox/trunk: started documentation of world-entities….
this is not really usefull, because i think, that this will change a lot with development….

Location:
orxonox/trunk/src/world_entities
Files:
4 edited

Legend:

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

    r4444 r4490  
    7777}
    7878
    79 
    8079/**
    8180   \brief sets a new AspectRatio
     
    107106}
    108107
     108/**
     109   \brief sets the new VideoMode and initializes iteration to it.
     110   \param mode the mode to change to.
     111*/
    109112void Camera::setViewMode(ViewMode mode)
    110113{
     
    141144/**
    142145   \brief Updates the position of the camera.
    143    \param dt The time that elapsed.
     146   \param dt: The time that elapsed.
    144147*/
    145148void Camera::tick(float dt)
     
    191194}
    192195
    193 
     196/**
     197   \brief processes an event
     198   \param event: the event to process
     199*/
    194200void Camera::process(const Event &event)
    195201{
  • orxonox/trunk/src/world_entities/camera.h

    r4414 r4490  
    1515class Event;
    1616
    17 enum ViewMode{VIEW_NORMAL, VIEW_BEHIND, VIEW_FRONT, VIEW_LEFT, VIEW_RIGHT, VIEW_TOP};
     17//! an enumerator for different types of view
     18typedef enum ViewMode{ VIEW_NORMAL,
     19                       VIEW_BEHIND,
     20                       VIEW_FRONT,
     21                       VIEW_LEFT,
     22                       VIEW_RIGHT,
     23                       VIEW_TOP };
    1824
    1925//! Camera
     
    2329class Camera : public PNode, public EventListener
    2430{
    25  private:
    26   CameraTarget* target;            //!< The Target of the Camera (where this Camera Looks at)
    27 
    28   float fovy;                      //!< The field of view Angle (in degrees).
    29   float aspectRatio;               //!< The aspect ratio (width / height).
    30   float nearClip;                  //!< The near clipping plane.
    31   float farClip;                   //!< The far clipping plane.
    32 
    33   Vector toRelCoor;
    34   float toFovy;
    35  
    3631 public:
    3732  Camera(void);
     
    5045
    5146  void process(const Event &event);
     47
     48 private:
     49  CameraTarget*     target;          //!< The Target of the Camera (where this Camera Looks at)
     50
     51  float             fovy;            //!< The field of view Angle (in degrees).
     52  float             aspectRatio;     //!< The aspect ratio (width / height).
     53  float             nearClip;        //!< The near clipping plane.
     54  float             farClip;         //!< The far clipping plane.
     55
     56  Vector toRelCoor;                  //!< The relativeCoordinate to move the camera to.
     57  float toFovy;                      //!< The fovy-mode to iterate to.
    5258};
    5359
  • orxonox/trunk/src/world_entities/environment.cc

    r4094 r4490  
    2626
    2727
    28 
     28/**
     29   \brief creates an environment
     30*/
    2931Environment::Environment () : WorldEntity()
    3032{
    31   this->model = (Model*) ResourceManager::getInstance()->load("cube", RP_LEVEL);
     33
    3234}
    3335
    3436
    35 
     37/**
     38   \brief deletes an environment
     39*/
    3640Environment::~Environment ()
    3741{
     
    3943}
    4044
     45/**
     46   \brief ticks the environment
     47   \param time the time about which to tick
     48*/
    4149void Environment::tick (float time) {}
    4250
     51/**
     52   \brief if a hit occures
     53*/
    4354void Environment::hit (WorldEntity* weapon, Vector* loc) {}
    4455
     56/**
     57   \brief destroys an Environment
     58*/
    4559void Environment::destroy () {}
    4660
     61/**
     62   \brief a collision with some ship
     63*/
    4764void Environment::collide (WorldEntity* other,  Uint32 ownhitflags, Uint32 otherhitflags) {}
    4865
     66/**
     67   \brief draws the Environment
     68*/
    4969void Environment::draw ()
    5070{
  • orxonox/trunk/src/world_entities/environment.h

    r3578 r4490  
     1/*!
     2  \file environment.h
     3  \brief This file handles the environment of the game
     4*/
     5
    16#ifndef _ENVIRONEMENT_H
    27#define _ENVIRONEMENT_H
     
    49#include "world_entity.h"
    510
    6 
     11//! environment of orxonox
     12/**
     13   everything that does not interact with the player comes here
     14   Environment is a container for all the worldEntities that are non-interactive
     15*/
    716class Environment : public WorldEntity
    817{
Note: See TracChangeset for help on using the changeset viewer.