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

File:
1 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   
Note: See TracChangeset for help on using the changeset viewer.