diff options
| -rw-r--r-- | sigmod/Direction.h | 49 | ||||
| -rw-r--r-- | sigscript/SigmodWrapper.h | 1 |
2 files changed, 50 insertions, 0 deletions
diff --git a/sigmod/Direction.h b/sigmod/Direction.h new file mode 100644 index 00000000..68e97df6 --- /dev/null +++ b/sigmod/Direction.h @@ -0,0 +1,49 @@ +/* + * Copyright 2009 Abshiehk Mukherjee <linkinpark342@gmail.com + * + * This program is free software: you can redistribute it and/or modify + * it under the terms of the GNU General Public License as published by + * the Free Software Foundation, either version 3 of the License, or + * (at your option) any later version. + * + * This program is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + * GNU General Public License for more details. + * + * You should have received a copy of the GNU General Public License along + * with this program. If not, see <http://www.gnu.org/licenses/>. + */ + +/** + * \file sigmod/Direction.h + */ + +#ifndef SIGMOD_DIRECTION +#define SIGMOD_DIRECTION + +// Qt includes +#include <QtCore/QMetaType> +#include <QtCore/QStringList> + +namespace Sigmod +{ +/** + * \enum Direction + * \brief Enumeration of directions. + */ +enum Direction +{ + D_Up = 0, + D_Down = 1, + D_Left = 2, + D_Right = 3, + D_None = 4 +}; +/// Strings for the directions. +const QStringList DirectionStr = QStringList() << "Up" << "Down" << "Left" << "Right" << "None"; + +} +Q_DECLARE_METATYPE(Sigmod::Direction) + +#endif diff --git a/sigscript/SigmodWrapper.h b/sigscript/SigmodWrapper.h index ebb0b582..26762bf3 100644 --- a/sigscript/SigmodWrapper.h +++ b/sigscript/SigmodWrapper.h @@ -25,6 +25,7 @@ #include "../sigcore/Hat.h" // Sigmod includes +#include "../sigmod/Direction.h" #include "../sigmod/Sigmod.h" #include "../sigmod/Stat.h" |
