Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

Ignore:
Timestamp:
Dec 13, 2007, 5:58:14 PM (17 years ago)
Author:
nicolasc
Message:

added copyright notice
network still need to be done

Location:
code/branches/FICN/src/orxonox/hud
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • code/branches/FICN/src/orxonox/hud/hud_overlay.cc

    r337 r513  
    55 *   License notice:
    66 *
    7  *   This program is free software: you can redistribute it and/or modify
    8  *   it under the terms of the GNU General Public License as published by
    9  *   the Free Software Foundation, either version 3 of the License, or
    10  *   (at your option) any later version.
     7 *   This program is free software; you can redistribute it and/or
     8 *   modify it under the terms of the GNU General Public License
     9 *   as published by the Free Software Foundation; either version 2
     10 *   of the License, or (at your option) any later version.
    1111 *
    1212 *   This program is distributed in the hope that it will be useful,
     
    1616 *
    1717 *   You should have received a copy of the GNU General Public License
    18  *   along with this program.  If not, see <http://www.gnu.org/licenses/>.
    19  *
     18 *   along with this program; if not, write to the Free Software
     19 *   Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA  02110-1301, USA.
    2020 *
    2121 *   Author:
     
    7474                OverlayElement* TimeText = OverlayManager::getSingleton().getOverlayElement("Orxonox/HUD1.2/Time/Text");
    7575                TimeText->setCaption(StringConverter::toString(TimeMin) + ":" + StringConverter::toString(TimeSec));
    76                
     76
    7777                // set TargetWindow
    7878                String TargetWindowName = "HURRA";
     
    8181                int TargetWindowHitRating = 30;
    8282                OverlayElement* TargetWindowNameText = OverlayManager::getSingleton().getOverlayElement("Orxonox/HUD1.2/TargetWindow/Name");
    83                 TargetWindowNameText->setCaption( TargetWindowName);           
     83                TargetWindowNameText->setCaption( TargetWindowName);
    8484                OverlayElement* TargetWindowDistanceText = OverlayManager::getSingleton().getOverlayElement("Orxonox/HUD1.2/TargetWindow/DistanceText");
    8585                TargetWindowDistanceText->setCaption(StringConverter::toString(TargetWindowDistance) + "km" );
     
    8888                OverlayElement* TargetWindowHitRatingText = OverlayManager::getSingleton().getOverlayElement("Orxonox/HUD1.2/TargetWindow/HitRatingText");
    8989                TargetWindowHitRatingText->setCaption(StringConverter::toString(TargetWindowHitRating) + "%" );
    90                
     90
    9191                // set Energy
    9292                int EnergyValue = 60.0;
    9393                OverlayElement* EnergyLength = OverlayManager::getSingleton().getOverlayElement("Orxonox/HUD1.2/EnergyBackground");
    9494                EnergyLength->setWidth((int)((double)60/(double)100*200));
    95                
     95
    9696                // set Shild
    9797                bool ShildLeftTopValue = true;
     
    111111                if (ShildRightBottomValue) ShildRightBottom->show();
    112112                else ShildRightBottom->hide();
    113                
     113
    114114                // set Rockets
    115115                int Rocket1 = 11;
     
    125125                OverlayElement* RocketNum4 = OverlayManager::getSingleton().getOverlayElement("Orxonox/HUD1.2/RocketNum4");
    126126                RocketNum4->setCaption(StringConverter::toString(Rocket4));
    127                
     127
    128128                // set EnergyDistribution
    129129                double EnergyDistrPixelX = 100;
    130                 double EnergyDistrPixelY = 86;         
     130                double EnergyDistrPixelY = 86;
    131131                double EnergyDistrShild = 32;
    132132                double EnergyDistrEngine = 50;
     
    137137                double EnergyDistrY = (double)EnergyDistrEngineInv/((double)EnergyDistrEngineInv+(double)EnergyDistrLaserInv) * EnergyDistrPixelY;
    138138                double EnergyDistrX = EnergyDistrY/1.7321;
    139                
    140                
    141                
     139
     140
     141
    142142                OverlayElement* EnergyDistrPoint = OverlayManager::getSingleton().getOverlayElement("Orxonox/HUD1.2/EnergyDistrPoint");
    143143//              EnergyDistrPoint->setLeft();
  • code/branches/FICN/src/orxonox/hud/test_overlay.cc

    r337 r513  
    55 *   License notice:
    66 *
    7  *   This program is free software: you can redistribute it and/or modify
    8  *   it under the terms of the GNU General Public License as published by
    9  *   the Free Software Foundation, either version 3 of the License, or
    10  *   (at your option) any later version.
     7 *   This program is free software; you can redistribute it and/or
     8 *   modify it under the terms of the GNU General Public License
     9 *   as published by the Free Software Foundation; either version 2
     10 *   of the License, or (at your option) any later version.
    1111 *
    1212 *   This program is distributed in the hope that it will be useful,
     
    1616 *
    1717 *   You should have received a copy of the GNU General Public License
    18  *   along with this program.  If not, see <http://www.gnu.org/licenses/>.
    19  *
     18 *   along with this program; if not, write to the Free Software
     19 *   Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA  02110-1301, USA.
    2020 *
    2121 *   Author:
Note: See TracChangeset for help on using the changeset viewer.