Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

Ignore:
Timestamp:
May 31, 2010, 4:55:05 PM (14 years ago)
Author:
jo
Message:

coloured messages, different spaceships in one level, with bug

Location:
code/branches/presentation3/src/orxonox/infos
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • code/branches/presentation3/src/orxonox/infos/GametypeInfo.cc

    r7031 r7062  
    112112    }
    113113
    114     void GametypeInfo::sendStaticMessage(const std::string& message, unsigned int clientID)
     114    void GametypeInfo::sendStaticMessage(const std::string& message, unsigned int clientID, const ColourValue& colour)
    115115    {
    116116        if (GameMode::isMaster())
    117117        {
    118118            if (clientID == CLIENTID_SERVER)
    119                 this->dispatchStaticMessage(message);
     119                this->dispatchStaticMessage(message, colour);
    120120            else
    121                 callMemberNetworkFunction(GametypeInfo, dispatchStaticMessage, this->getObjectID(), clientID, message);
     121                callMemberNetworkFunction(GametypeInfo, dispatchStaticMessage, this->getObjectID(), clientID, message, colour);
    122122        }
    123123    }
     
    152152    }
    153153
    154      void GametypeInfo::dispatchStaticMessage(const std::string& message)
     154     void GametypeInfo::dispatchStaticMessage(const std::string& message, const ColourValue& colour)
    155155    {
    156156        for (ObjectList<GametypeMessageListener>::iterator it = ObjectList<GametypeMessageListener>::begin(); it != ObjectList<GametypeMessageListener>::end(); ++it)
    157             it->staticmessage(this, message);
     157            it->staticmessage(this, message, colour);
    158158    }
    159159   
  • code/branches/presentation3/src/orxonox/infos/GametypeInfo.h

    r7031 r7062  
    6464            void sendKillMessage(const std::string& message, unsigned int clientID);
    6565            void sendDeathMessage(const std::string& message, unsigned int clientID);
    66             void sendStaticMessage(const std::string& message, unsigned int clientID);
     66            void sendStaticMessage(const std::string& message, unsigned int clientID, const ColourValue& colour);
    6767            void sendFadingMessage(const std::string& message, unsigned int clientID);
    6868
     
    7070            void dispatchKillMessage(const std::string& message);
    7171            void dispatchDeathMessage(const std::string& message);
    72             void dispatchStaticMessage(const std::string& message);
     72            void dispatchStaticMessage(const std::string& message,const ColourValue& colour);
    7373            void dispatchFadingMessage(const std::string& message);
    7474
Note: See TracChangeset for help on using the changeset viewer.