Added GPLv3 headers all over the place.
[fail.git] / src / services / lua / test / CeilingCat.h
blob91aa8e3392917fe448b27b9bef00ee9f8fa906f2
1 /*
2 Fail game engine
3 Copyright 2007 Antoine Chavasse <a.chavasse@gmail.com>
5 This file is part of Fail.
7 Fail is free software; you can redistribute it and/or modify
8 it under the terms of the GNU General Public License version 3
9 as published by the Free Software Foundation.
11 Fail is distributed in the hope that it will be useful,
12 but WITHOUT ANY WARRANTY; without even the implied warranty of
13 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
14 GNU General Public License for more details.
16 You should have received a copy of the GNU General Public License
17 along with this program. If not, see <http://www.gnu.org/licenses/>.
19 #ifndef FAIL_LUA_CEILINGCAT_H_
20 #define FAIL_LUA_CEILINGCAT_H_
22 #include <iostream>
23 #include "core/core.h"
24 #include "Meh.h"
25 #include "MustardMan.h"
27 namespace fail { namespace luatest
29 class CeilingCat : public Meh
31 public:
32 CeilingCat()
34 std::cout << "CeilingCat is watching you instancing objects\n";
35 m_OhNoes = 12345;
36 m_NotAmused = 2;
39 ~CeilingCat()
41 std::cout << "CeilingCat destructor\n";
44 static Pointer< CeilingCat > Create()
46 return new CeilingCat;
49 const int32_t& getOhNoes() const
51 std::cout << "ceiling cat is watching you access attributes\n";
52 return m_OhNoes;
55 void setOhNoes( const int32_t& x )
57 std::cout << "ceiling cat is watching you setting attributes\n";
58 m_OhNoes = x;
61 int32_t WTF( int32_t eat, int32_t shit )
63 std::cout << "ceilingcat wtf\n";
64 return eat * shit;
67 void Meow()
69 std::cout << "Dude... Wait, what?\n";
72 const int32_t& getNotAmused() const
74 return m_NotAmused;
76 void setNotAmused( const int32_t& x )
78 m_NotAmused = x;
81 const MustardMan& getZOMG() const
83 return m_ZOMG;
85 MustardMan& getZOMG()
87 return m_ZOMG;
89 void setZOMG( const MustardMan& x )
91 m_ZOMG = x;
94 protected:
95 int32_t m_NotAmused;
96 MustardMan m_ZOMG;
100 #endif