Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

Ignore:
Timestamp:
May 26, 2011, 4:35:18 PM (14 years ago)
Author:
kmaurus
Message:
 
File:
1 edited

Legend:

Unmodified
Added
Removed
  • code/branches/spaceboundaries2/src/orxonox/worldentities/SpaceBoundaries.h

    r8513 r8604  
    2626 *
    2727 */
    28  
    29  /* TODO:   - Bei Reaction_ == 2 ist die Reflexion noch nicht ganz so top!! Vielleicht auch so belassen, ist ja nicht unbedingt schlecht.
    30  
    31             - Textmessages und Billboards sollen teils nur bei einem humanPlayer angezeigt werden, nicht bei allen (vgl. Netzwerk-Spiel mit mehreren humanPlayers)
    32                 beachte hierzu folgende statische Funktion: 'static unsigned int  Host::getPlayerID()'
    33                 (file:///home/kmaurus/orxonox/spaceBoundaries/build/doc/api/html/classorxonox_1_1_host.html#9c1e3b39e3b42e467dfbf42902911ce2)
    34                
    35                 Mich finde ich unter humanPlayer ...
    36                
    37             - Kommentieren (Betrachte als Beispiel/Vorbild 'libraries/core/WeakPtr.h')
    38                 oder brauche groups-file.
    39  */
    4028
    4129#ifndef _SpaceBoundaries_H__
     
    6452       - 'maxDistance' : defines the area, where a pawn is allowed to be (radius of a ball).
    6553       - 'warnDistance' : If the distance between the pawn of the human player and 'position' is bigger than 'warnDistance', a message is displayed to
    66                           inform the player that he'll soon be leaving the allowed area.
     54                          inform the player that he'll soon be leaving the allowed area. (not implemented yet!)
    6755       - 'showDistance' : If the distance between the pawn and the boundary of the allowed area is smaller than 'showDistance', the boundary is shown.
    6856       - 'reactionMode' : Integer-Value. Defines what effect appears if a space ship has crossed the boundaries.
     
    125113            float maxDistance_; //!< maximal zulaessige Entfernung von 'this->getPosition()'.
    126114            float warnDistance_; //!< Entfernung von 'this->getPosition()', ab der eine Warnung angezeigt wird, dass man bald das zulaessige Areal verlaesst.
    127             float showDistance_; //!< Definiert, wann die Grenzen visualisiert werden sollen.
     115            float showDistance_; //!< Definiert, wann die Grenzen visualisiert werden sollen. ("Entfernung von 'this->maxDistance_'")
    128116           
    129117            float healthDecrease_; //!< Mass fuer die Anzahl Health-Points, die nach ueberschreiten der Entfernung 'maxDistance_' von 'this->getPosition()' abgezogen werden.
    130                                    //!< Empfohlene Werte: 0.1 (langsame Health-Verminderung) bis 5 (sehr schnelle Health-Verminderung)
     118                                   //!< Empfohlene Werte: 0.1 (langsame Health-Verminderung) bis 5 (sehr schnelle Health-Verminderung).
     119                                   //!< Hat nur eine Bedeutung, falls 'this->reaction_' 1 (eins) ist.
    131120           
    132121           
    133122            RadarViewable* centerRadar_; //!< Repraesentation von SpaceBoundaries auf dem Radar.
     123           
     124            Billboard* constBilly; // TO REMOVE (DEBUGGING)
    134125       
    135126       
    136127            // Funktionen::
    137128            float computeDistance(WorldEntity *item); //!< Auf den Mittelpunkt 'this->getPosition()' bezogen.
    138             void displayWarning(const std::string warnText);
     129            void displayWarning(const std::string warnText); //!< Einen Warntext auf dem Bildschirm ausgeben. (noch nicht implementiert)
    139130            void displayBoundaries(Pawn *item);
    140131            void conditionalBounceBack(Pawn *item, float currentDistance, float dt);
     
    145136           
    146137            void positionBillboard(const Vector3 position); //!< Display a Billboard at the position 'position'.
    147             void setBillboardOptions(Billboard *billy);
     138            void setBillboardOptions(Billboard *billy, Vector3 position);
    148139            void removeAllBillboards(); //!< Hide all elements of '*billboard_' and set their attribute 'usedYet' to 0.
    149140           
Note: See TracChangeset for help on using the changeset viewer.