Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

Changeset 2066 in orxonox.OLD for orxonox/branches


Ignore:
Timestamp:
Jul 3, 2004, 5:36:35 PM (20 years ago)
Author:
chris
Message:

orxonox/branches/chris: Implemented CommandNode (Keyboard handling), created some functions to convert key names to identifyers and vice versa, ensured it compiles (when compiled spereately) added a header to hold global message structures

Location:
orxonox/branches/chris/src
Files:
5 added
4 edited

Legend:

Unmodified
Added
Removed
  • orxonox/branches/chris/src/ini_parser.cc

    r2065 r2066  
    1717#include "ini_parser.h"
    1818
    19 #include <stdio.h>
    20 #include <strings.h>
    21 
    2219using namespace std;
    2320
     
    2623        stream = NULL;
    2724        bInSection = false;
    28         openFile (filename);
     25        open_file (filename);
    2926}
    3027
     
    3431}
    3532
    36 int IniParser::openFile( char* filename)
     33int IniParser::open_file( char* filename)
    3734{
    3835        if( filename == NULL) return -1;
     
    4744}
    4845
    49 int IniParser::getSection( char* section)
     46int IniParser::get_section( char* section)
    5047{
    5148        bInSection = false;
     
    8077}
    8178
    82 int IniParser::nextVar( char* name, char* value)
     79int IniParser::next_var( char* name, char* value)
    8380{
    8481        if( stream == NULL)
     
    114111}
    115112
    116 char* IniParser::getVar( char* name, char* section, char* defvalue = "")
     113char* IniParser::get_var( char* name, char* section, char* defvalue = "")
    117114{
    118115        strcpy (internbuf, defvalue);
    119         if( getSection (section) == -1) return internbuf;
     116        if( get_section (section) == -1) return internbuf;
    120117       
    121118        char namebuf[PARSELINELENGHT];
    122119        char valuebuf[PARSELINELENGHT];
    123120       
    124         while( nextVar (namebuf, valuebuf) != -1)
     121        while( next_var (namebuf, valuebuf) != -1)
    125122        {
    126123                if( !strcmp (name, namebuf))
  • orxonox/branches/chris/src/ini_parser.h

    r2065 r2066  
    99#define INI_PARSER_H
    1010
    11 #include "stdincl.h"
     11#include <stdio.h>
     12#include <strings.h>
     13#include <stdlib.h>
    1214
    1315#define PARSELINELENGHT 512
     
    2325  ~IniParser ();
    2426 
    25   char* getVar( char* name, char* section, char* defvalue);
    26         int openFile( char* name);
    27   int getSection( char* section);
    28   int nextVar( char* name, char* value);
     27  char* get_var( char* name, char* section, char* defvalue);
     28        int open_file( char* name);
     29  int get_section( char* section);
     30  int next_var( char* name, char* value);
    2931};
    3032
  • orxonox/branches/chris/src/stdincl.h

    r1982 r2066  
    55#define null 0
    66
     7#ifdef __WIN32__
     8#include <windows.h>
    79#endif
     10#include <SDL/SDL.h>
     11
     12#include "list.h"
     13#include "message_structures.h"
     14#include "orxonox.h"
     15#include "world_entity.h"
     16
     17#endif
  • orxonox/branches/chris/src/world_entity.h

    r2058 r2066  
    33#define WORLD_ENTITY_H
    44
    5 #include "data_tank.h"
     5#include "stdincl.h"
     6//#include "data_tank.h"
    67
    78class Vector;
     
    3435  virtual void hit(WorldEntity* weapon, Vector loc);
    3536  virtual void destroy();
     37  virtual void command (Command* cmd);
    3638
    3739  virtual void entityPreEnter();
Note: See TracChangeset for help on using the changeset viewer.