container.h

cowmud-0.11/src/container.h · 582 B

From the archive cowmud-0.11.tar.gz

Download the archive   « Back to the archive contents

#ifndef _CONTAINER_H_
#define _CONTAINER_H_

#include <fstream>
#include <vector>

class Container {

  public:
    // The constructor
    Container();		// Default Constructor
    void setName(string str);	// Sets the name of the character/mobile
    string getName();		// Gets the name of the character/mobile
    void setLevel(int level);	// Sets the permission level of the character/mobile
    int getLevel();		// Sets the permission level of the character/mobile
    bool isNameOk();		// Checks for weird characters, etc.

  private:
    string name;
    int level;
};

#endif

Site Stats

Snippets: 1791
Codebases: 571