Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

Changeset 6699


Ignore:
Timestamp:
Apr 12, 2010, 5:32:12 PM (15 years ago)
Author:
smerkli
Message:

shit works xD

Location:
code/branches/chat/src
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • code/branches/chat/src/libraries/network/ChatListener.cc

    r6682 r6699  
    3737    }
    3838
    39     void ChatListener::incomingChat( const std::string& message,
    40       unsigned int senderID )
    41     {
    42       COUT(0) << "Chat: \"" << message << "\"\n";
     39    //void ChatListener::incomingChat( const std::string& message,
     40      //unsigned int senderID )
     41    //{
     42      //COUT(0) << "Chat: \"" << message << "\"\n";
    4343
    4444
    45     }
     45    //}
    4646
    4747
  • code/branches/chat/src/orxonox/ChatHistory.cc

    r6698 r6699  
    2828
    2929#include "ChatHistory.h"
    30 #include "core/ScopedSingletonManager.h"
     30#include <core/ScopedSingletonManager.h>
    3131
    3232#ifndef CHATTEST
     
    3939  /* constructor */
    4040#ifndef CHATTEST
    41   ChatHistory(BaseObject* creator) : BaseObject(creator)
     41  //ChatHistory::ChatHistory( BaseObject* creator ) : BaseObject(creator)
     42  ChatHistory::ChatHistory()
    4243#else
    4344  ChatHistory::ChatHistory()
     
    5859      this->chat_hist_logline( "--- Logfile opened ---" );
    5960    }
    60 
    61     assert(0);
    6261
    6362    /* Read setting for maximum number of lines and set limit */
     
    142141     */
    143142#ifndef CHATTEST
    144     this->hist_logfile.open( PathConfig::getInstance().getLogPathString() +
    145       "chatlog.log",
     143    this->hist_logfile.open( (PathConfig::getInstance().getLogPathString() +
     144      "chatlog.log").c_str(),
    146145      std::fstream::out | std::fstream::app );
    147146#else
  • code/branches/chat/src/orxonox/ChatHistory.h

    r6698 r6699  
    3434
    3535/* define this if you're unit testing */
    36 #define CHATTEST 0
     36//#define CHATTEST
    3737
    3838#ifndef CHATTEST
     39#include <OrxonoxPrereqs.h>
     40#include <PlayerManager.h>
     41#include <infos/PlayerInfo.h>
    3942#include <core/BaseObject.h>
     43#include <network/ChatListener.h>
    4044#include <core/PathConfig.h>
    41 #include <Singleton.h>
     45#include <util/Singleton.h>
    4246#endif
    4347
     
    5458  /* constructor */
    5559#ifndef CHATTEST
    56   class _OrxonoxExport ChatHistory : public BaseObject, public ChatListener,
     60  class _OrxonoxExport ChatHistory : public ChatListener,
    5761    public Singleton<ChatHistory>
    5862
     
    6468      /* constructors, destructors */
    6569#ifndef CHATTEST
    66       ChatHistory(BaseObject* creator);
     70      ChatHistory();
    6771      friend class Singleton<ChatHistory>;
    6872#else
Note: See TracChangeset for help on using the changeset viewer.