Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

Ignore:
Timestamp:
Aug 4, 2011, 12:45:06 AM (13 years ago)
Author:
landauf
Message:

Chat works again
Removed console output for almost all gameplay messages (use chat/notifications instead)
Deathmatch level now actually uses Deathmatch gametype

Location:
code/branches/output/src/orxonox/gametypes
Files:
6 edited

Legend:

Unmodified
Added
Removed
  • code/branches/output/src/orxonox/gametypes/Asteroids.cc

    r8809 r8822  
    7474
    7575        std::string message("The match has started! Reach the first chekpoint within 15 seconds! But be aware, there may be pirates around...");
    76         orxout(level::message) << message << endl;
    7776        Host::Broadcast(message);
    7877
     
    8483
    8584        std::string message("The match has ended.");
    86         orxout(level::message) << message << endl;
    8785        Host::Broadcast(message);
    8886    }
  • code/branches/output/src/orxonox/gametypes/Deathmatch.cc

    r8809 r8822  
    4848
    4949        std::string message("The match has started!");
    50         orxout(level::message) << message << endl;
    5150        Host::Broadcast(message);
    5251    }
     
    5756
    5857        std::string message("The match has ended.");
    59         orxout(level::message) << message << endl;
    6058        Host::Broadcast(message);
    6159    }
     
    6664
    6765        const std::string& message = player->getName() + " entered the game";
    68         orxout(level::message) << message << endl;
    6966        Host::Broadcast(message);
    7067    }
     
    7774        {
    7875            const std::string& message = player->getName() + " left the game";
    79             orxout(level::message) << message << endl;
    8076            Host::Broadcast(message);
    8177        }
     
    9187        {
    9288            const std::string& message = player->getOldName() + " changed name to " + player->getName();
    93             orxout(level::message) << message << endl;
    9489            Host::Broadcast(message);
    9590        }
     
    113108                message = victim->getPlayer()->getName() + " died";
    114109
    115             orxout(level::message) << message << endl;
    116110            Host::Broadcast(message);
    117111        }
     
    127121        {
    128122            const std::string& message = player->getName() + " scores!";
    129             orxout(level::message) << message << endl;
    130123            Host::Broadcast(message);
    131124        }
  • code/branches/output/src/orxonox/gametypes/Dynamicmatch.cc

    r8809 r8822  
    343343        Gametype::playerEntered(player);
    344344        const std::string& message = player->getName() + " entered the game";
    345         orxout(level::message) << message << endl;
    346345        Host::Broadcast(message);
    347346    }
     
    359358            }
    360359            const std::string& message = player->getName() + " left the game";
    361             orxout(level::message) << message << endl;
    362360            Host::Broadcast(message);
    363361            //remove player from map
     
    617615        {
    618616            const std::string& message = player->getOldName() + " changed name to " + player->getName();
    619             orxout(level::message) << message << endl;
    620617            Host::Broadcast(message);
    621618        }
     
    630627        {
    631628            std::string message("Dynamicmatch started!");
    632             orxout(level::message) << message << endl;
    633629            Host::Broadcast(message);
    634630        }
     
    647643    {
    648644        std::string message("Earn points:\n\n\n\tIf you're red: Chase the blue player!\n\n\tIf you're blue shoot at a red player or hide.\n\n\tIf you're green: You've got the licence to kill red players!");
    649         orxout(level::message) << message << endl;
    650645        Host::Broadcast(message);
    651646        callInstructions_.setTimer(10, false, createExecutor(createFunctor(&Dynamicmatch::furtherInstructions, this)));
     
    655650    {
    656651        std::string message("After 3 Minutes the game is over.");
    657         orxout(level::message) << message << endl;
    658652        Host::Broadcast(message);
    659653    }*/
     
    663657
    664658        std::string message("Time out. Press F2 to see the points you scored.");
    665         orxout(level::message) << message << endl;
    666659        Host::Broadcast(message);
    667660    }
  • code/branches/output/src/orxonox/gametypes/LastManStanding.cc

    r8809 r8822  
    9090                const std::string& message = ""; // resets Camper-Warning-message
    9191                this->gtinfo_->sendFadingMessage(message,it->first->getClientID());
    92             }   
     92            }
    9393        }
    9494        return true;
     
    105105            this->playersAlive--;
    106106            const std::string& message = victim->getPlayer()->getName() + " has lost all lives";
    107             orxout(level::message) << message << endl;
    108107            Host::Broadcast(message);
    109108        }
     
    128127    {
    129128        Gametype::end();
    130        
     129
    131130        for (std::map<PlayerInfo*, int>::iterator it = this->playerLives_.begin(); it != this->playerLives_.end(); ++it)
    132131        {
     
    148147            return 0;
    149148    }
    150    
     149
    151150    int LastManStanding::getNumPlayersAlive() const
    152151    {
     
    190189        this->timeToAct_[player]=timeRemaining+3.0f+respawnDelay;//reset timer
    191190        this->playerDelayTime_[player]=respawnDelay;
    192        
     191
    193192        std::map<PlayerInfo*, Player>::iterator it = this->players_.find(player);
    194193        if (it != this->players_.end())
     
    198197            const std::string& message = ""; // resets Camper-Warning-message
    199198            this->gtinfo_->sendFadingMessage(message,it->first->getClientID());
    200         } 
     199        }
    201200    }
    202201
     
    239238            }
    240239            for (std::map<PlayerInfo*, float>::iterator it = this->timeToAct_.begin(); it != this->timeToAct_.end(); ++it)
    241             {   
     240            {
    242241                if (playerGetLives(it->first)<=0)//Players without lives shouldn't be affected by time.
    243                     continue;     
     242                    continue;
    244243                it->second-=dt;//Decreases punishment time.
    245                 if (!inGame_[it->first])//Manages respawn delay - player is forced to respawn after the delaytime is used up. 
     244                if (!inGame_[it->first])//Manages respawn delay - player is forced to respawn after the delaytime is used up.
    246245                {
    247246                    playerDelayTime_[it->first]-=dt;
  • code/branches/output/src/orxonox/gametypes/LastTeamStanding.cc

    r8809 r8822  
    119119                this->teamsAlive--;
    120120            const std::string& message = victim->getPlayer()->getName() + " has lost all lives";
    121             orxout(level::message) << message << endl;
    122121            Host::Broadcast(message);
    123122        }
  • code/branches/output/src/orxonox/gametypes/UnderAttack.cc

    r8809 r8822  
    7070        this->end(); //end gametype
    7171        std::string message("Ship destroyed! Team 0 has won!");
    72         orxout(level::message) << message << endl;
    7372        Host::Broadcast(message);
    7473        this->gameEnded_ = true;
     
    153152                this->end();
    154153                std::string message("Time is up! Team 1 has won!");
    155                 orxout(level::message) << message << endl;
    156154                Host::Broadcast(message);
    157155
     
    173171                const std::string& message = multi_cast<std::string>(timesequence_) + " seconds left!";
    174172/*
    175                 orxout(level::message) << message << endl;
    176173                Host::Broadcast(message);
    177174*/
Note: See TracChangeset for help on using the changeset viewer.