Resolve "Toggle Free Look with Hotkey"
[ryzomcore.git] / ryzom / server / src / sabrina / h_file_test.cpp
blobcace44f2b73784f5fea9a152f48060652b3681f4
1 // Ryzom - MMORPG Framework <http://dev.ryzom.com/projects/ryzom/>
2 // Copyright (C) 2010 Winch Gate Property Limited
3 //
4 // This program is free software: you can redistribute it and/or modify
5 // it under the terms of the GNU Affero General Public License as
6 // published by the Free Software Foundation, either version 3 of the
7 // License, or (at your option) any later version.
8 //
9 // This program is distributed in the hope that it will be useful,
10 // but WITHOUT ANY WARRANTY; without even the implied warranty of
11 // MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
12 // GNU Affero General Public License for more details.
14 // You should have received a copy of the GNU Affero General Public License
15 // along with this program. If not, see <http://www.gnu.org/licenses/>.
17 // h file test
19 //#include "sabrina_actor.h"
20 //#include "sabrina_actor_creature.h"
21 //#include "sabrina_actor_player.h"
22 //#include "sabrina_ai_interface.h"
23 //#include "sabrina_enum.h"
24 //#include "sabrina_item_stats.h"
25 //#include "sabrina_messages.h"
26 //#include "sabrina_message_callbacks.h"
27 //#include "sabrina_phrase_description.h"
28 //#include "sabrina_phrase_instance.h"
29 //#include "sabrina_phrase_manager.h"
30 //#include "sabrina_phrase_model.h"
31 //#include "sabrina_phrase_model_craft.h"
32 //#include "sabrina_phrase_model_factory.h"
33 //#include "sabrina_phrase_model_fight.h"
34 //#include "sabrina_phrase_model_magic.h"
35 //#include "sabrina_pointers.h"
36 #include "position_manager/position_manager.h"
39 #include "items/lockable.h"
40 CLock lock;
41 CLockable lockable;
42 void foo()
44 CLock theLock(&lockable);
45 lock=&lockable;
46 lock=(CLockable*)theLock;
47 if (lock->isLocked())
48 lock->breakLock();
50 CLockable* ptr=&lockable;
51 const CLockable* constPtr=&lockable;
52 CLock* lock1= ptr->getLock();
53 const CLock* lock2= constPtr->getLock();