Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

Ignore:
Timestamp:
Mar 23, 2009, 11:26:46 AM (15 years ago)
Author:
landauf
Message:

Added "Pong" minigame

File:
1 edited

Legend:

Unmodified
Added
Removed
  • code/branches/miniprojects/src/orxonox/objects/gametypes/Deathmatch.cc

    r2820 r2824  
    4949        Gametype::start();
    5050
    51         COUT(0) << "game started" << std::endl;
     51        std::string message = "The match has started!";
     52        COUT(0) << message << std::endl;
     53        Host::Broadcast(message);
    5254    }
    5355
     
    5658        Gametype::end();
    5759
    58         COUT(0) << "game ended" << std::endl;
     60        std::string message = "The match has ended.";
     61        COUT(0) << message << std::endl;
     62        Host::Broadcast(message);
    5963    }
    6064
     
    117121        Gametype::pawnKilled(victim, killer);
    118122    }
     123
     124    void Deathmatch::playerScored(PlayerInfo* player)
     125    {
     126        Gametype::playerScored(player);
     127
     128        if (player)
     129        {
     130            std::string message = player->getName() + " scores!";
     131            COUT(0) << message << std::endl;
     132            Host::Broadcast(message);
     133        }
     134    }
    119135}
Note: See TracChangeset for help on using the changeset viewer.