line.h

cowmud-0.11/src/line.h · 325 B

From the archive cowmud-0.11.tar.gz

Download the archive   « Back to the archive contents

#ifndef _LINE_H_
#define _LINE_H_

enum{LTYPE_UNPASSIBLE};

class Line {
  public:
    Line();
    Line(int type, int x, int y);
    int getType();
    int getX();
    int getY();
    void setType(int type);
    void setX(int x);
    void setY(int y);

  private:
    int xcoord;
    int ycoord;
    int linetype;
};

#endif

Site Stats

Snippets: 1791
Codebases: 571