SOL9 2.0 Class: Location

 SOL9 C++ Class Library  SOL9 Samples  SOL9 Tutorial  SOL9 FAQ  SOL9 ClassTree 

Source code

/*
 * Location.h 
 * Copyright (c) 2011 Antillia.com TOSHIYUKI ARAI. ALL RIGHTS RESERVED. 
 */


// SOL++2000
#pragma once

#include <sol\Object.h>


namespace SOL {

class Location :public Object {
private:
    int    x;
    int y;

public:
    Location(int x1 = 0, int y1 = 0)
        :x(x1), y(y1) { 
    
    }
    int     getX() { return x; }

    int     getY() { return y; }

    int     get(int& x1, int& y1) {
        x1 = x;
        y1 = y;
    }
    void set(int x1, int y1) {
        x = x1;
        y = y1;
    }

};

}



Last modified: 1 Feb 2012

Copyright (c) 2009-2012 Antillia.com ALL RIGHTS RESERVED.