Changeset b128109 in network-game for server/DataAccess.h


Ignore:
Timestamp:
Jan 29, 2013, 7:34:29 PM (12 years ago)
Author:
dportnoy <dmp1488@…>
Branches:
master
Children:
60b77d2
Parents:
5806dc2
Message:

Added MSG_TYPE_PLAYER_MOVE, which allows players to tell the server where they want to move

File:
1 edited

Legend:

Unmodified
Added
Removed
  • server/DataAccess.h

    r5806dc2 rb128109  
    33
    44#include <string>
     5#include <list>
    56
    67#include <mysql/mysql.h>
     
    1617
    1718   int insertPlayer(string username, string password);
     19   int updatePlayer(string username, string password);
    1820
    19    Player *getPlayer(string username);
    20    int printPlayers();
     21   Player* getPlayer(string username);
     22   list<Player*>* getPlayers();
     23   bool verifyPassword(string encrypted, string password);
    2124
    2225   int insert(string table, string rows, string values);
     26   int update(string table, string values, string where);
    2327   MYSQL_RES *select(string table, string filter);
    2428
Note: See TracChangeset for help on using the changeset viewer.