Physics.hpp

Go to the documentation of this file.
00001 /*
00002 SagaEngine library
00003 Copyright (c) 2002-2006 Skalden Studio AS
00004 
00005 This software is provided 'as-is', without any express or implied 
00006 warranty. In no event will the authors be held liable for any 
00007 damages arising from the use of this software.
00008 
00009 Permission is granted to distribute the library under the terms of the 
00010 Q Public License version 1.0. Be sure to read and understand the license
00011 before using the library. It should be included here, or you may read it
00012 at http://www.trolltech.com/products/qt/licenses/licensing/qpl
00013 
00014 The original version of this library can be located at:
00015 http://www.sagaengine.com/
00016 
00017 Rune Myrland
00018 rune@skalden.com
00019 */
00020 
00021 
00022 #ifndef engine_physics_Physics_hpp
00023 #define engine_physics_Physics_hpp
00024 
00025 #include "sim_physics.hpp"
00026 #include "sim/sim.hpp"
00027 #include "comp/Object.hpp"
00028 #include "../area/sim_area.hpp"
00029 #include "../custom/sim_custom.hpp"
00030 #include "../stat/sim_stat.hpp"
00031 #include "../thing/sim_thing.hpp"
00032 #include "../pos/sim_pos.hpp"
00033 
00034 namespace se_core {
00035     class _SeCoreExport Physics : public Object {
00036     public:
00037         static const Physics* lookup(const char* name) {
00038             return static_cast<const Physics*>(_lookup(got_PHYSICS, name));
00039         }
00040 
00047         Physics(const char* name);
00048 
00071         virtual void calcNext(const PhysicsComponent& physics
00072                               , const Pos& pos
00073                               , Pos& nextPos
00074                               , const Move& move
00075                               , Move& nextMove
00076                               ) const = 0;
00077 
00086         virtual void affect(PhysicsComponent& physics) const = 0;
00087 
00092         virtual bool isStacker() const { return true; }
00093     private:
00094     };
00095 }
00096 
00097 #endif

Home Page | SagaEngine trunk (updated nightly) reference generated Sun Dec 2 20:06:11 2007 by Doxygen version 1.3.9.1.

SourceForge.net Logo