Exemple #1
0
//******************************************************************************
// Functions that need to be revisited
//******************************************************************************
static PLAYER* Player_AddUser(u32 UserId)
{
    PLAYER* Player = new PLAYER(UserId);
    assert(Player != null);
    PlayerList.Add( Player ); 
    return Player;
}
Exemple #2
0
//******************************************************************************
// Constructor
//******************************************************************************
PLAYER::PLAYER(u32 _Id) :
    Id(_Id),
    Data(null)
{
    PlayerList.Add( this ); 

    char* data_path;
    data_path = getenv ("ASPCLIENT");
    if (!data_path) {
        printf("You need to set the ASPCLIENT environment variable, assuming you are running from the main asp directory...\n");
        snprintf(DataName, 100, "aspclient/data/stick_figure.data");
    } else {
        snprintf(DataName, 100, "%s/data/stick_figure.data", data_path);
    }
      

}