Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

Ignore:
Timestamp:
May 17, 2010, 3:22:10 PM (14 years ago)
Author:
smerkli
Message:

Added final comments, getting ready for merge

File:
1 edited

Legend:

Unmodified
Added
Removed
  • code/branches/chat2/src/orxonox/ChatInputHandler.h

    r6885 r6910  
    7878      void sub_adjust_dispoffset( int maxlen, int cursorpos, int inplen );
    7979
    80       /* singleton pointer */
     80      /** singleton pointer */
    8181      static ChatInputHandler* singletonPtr_s;
    8282
    83       /* cegui stuff */
     83      /** cegui window handles */
    8484      CEGUI::Window *input, *inputonly;
     85
     86      /** cegui handle for the history window */
    8587      CEGUI::Listbox *lb_history;
    86 
    87     public:
    88       /** constructor */
    89       ChatInputHandler();
    90       friend class Singleton<ChatInputHandler>;
    91 
    92       /* start listening, stop listening */
    93       static void activate_static();
    94       static void activate_small_static();
    95 
    96       void incomingChat( const std::string& message,
    97         unsigned int senderID );
    98 
    99       void activate( bool full );
    100       void deactivate();
    10188
    10289      /* callbacks for input handler */
     
    11097      void cursorHome();
    11198      void exit();
     99
     100    public:
     101      /** constructor */
     102      ChatInputHandler();
     103      friend class Singleton<ChatInputHandler>;
     104
     105      /** start listening */
     106      static void activate_static();
     107
     108      /** stop listening */
     109      static void activate_small_static();
     110
     111      /** \param message the message text
     112       * \param senderID ID of the player who sent the message
     113       *
     114       * Deal with incoming chat (which means in our case: Add it to the
     115       * history window of the full chat window)
     116       */
     117      void incomingChat( const std::string& message,
     118        unsigned int senderID );
     119
     120      /** \param full true means show full chat window with history,
     121            false means show only an input line
     122       *
     123       * Show the chat window and redirect the game's keyboard input
     124       * into it.
     125       */
     126      void activate( bool full );
     127
     128      /** Deactivate the chat window, meaning: hide it. */
     129      void deactivate();
     130
    112131  };
    113132
Note: See TracChangeset for help on using the changeset viewer.