Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

Ignore:
Timestamp:
Apr 22, 2011, 6:42:42 PM (14 years ago)
Author:
kmaurus
Message:

several billboards that represent the boundary can be displayed now

File:
1 edited

Legend:

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

    r8281 r8301  
    2727 */
    2828 
    29  /* TODO:   - Mehrere SpaceBoundaries-Instanzen pro Level ermoeglichen
    30             - Pro Pawn ein Billboard verwenden
     29 /* TODO:   - Sobald Bots im Spiel sind, stürzt das Programm relativ bald ab!!!
    3130 */
    3231 
     
    5251#include "worldentities/WorldEntity.h"
    5352
    54 //#include <ColoredTextAreaOverlayElementFactory.h>
    55 
    5653#include <string>
    5754#include <list>
     55#include <map>
     56#include <vector>
    5857
    5958/**
     
    7877            ~SpaceBoundaries();
    7978           
    80             void checkWhoIsIn();
     79            void checkWhoIsIn(); //!< Update the list 'pawnsIn_'.
     80           
     81            void positionBillboard(const Vector3 position);
     82            void setBillboardOptions(Billboard *billy);
     83            void removeAllBillboards();
    8184           
    8285            void setMaxDistance(float r);
     
    97100
    98101        private:
    99             std::list<Pawn*> pawnsIn_;
     102            struct billboardAdministration{ bool usedYet; Billboard* billy; };
     103           
     104            std::list<Pawn*> pawnsIn_; //!< List of the pawns that this instance of SpaceBoundaries has to handle.
     105           
     106            std::vector<billboardAdministration> billboards_;
    100107       
    101108            float maxDistance_; //!< maximal zulaessige Entfernung von 'this->getPosition()'.
     
    116123            bool isHumanPlayer(Pawn *item);
    117124           
    118  //           ColoredTextAreaOverlayElementFactory* pColoredTextAreaOverlayElementFactory;
    119125    };
    120126}
Note: See TracChangeset for help on using the changeset viewer.