Main Page | Namespace List | Class Hierarchy | Alphabetical List | Compound List | File List | Namespace Members | Compound Members | File Members

SceneFilter.h

Go to the documentation of this file.
00001 //------------------------------------------------------------------------------
00002 // Lamp : Open source game middleware
00003 // Copyright (C) 2004  Junpei Ohtani ( Email : junpee@users.sourceforge.jp )
00004 //
00005 // This library is free software; you can redistribute it and/or
00006 // modify it under the terms of the GNU Lesser General Public
00007 // License as published by the Free Software Foundation; either
00008 // version 2.1 of the License, or (at your option) any later version.
00009 //
00010 // This library is distributed in the hope that it will be useful,
00011 // but WITHOUT ANY WARRANTY; without even the implied warranty of
00012 // MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
00013 // Lesser General Public License for more details.
00014 //
00015 // You should have received a copy of the GNU Lesser General Public
00016 // License along with this library; if not, write to the Free Software
00017 // Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307  USA
00018 //------------------------------------------------------------------------------
00019 
00020 /** @file
00021  * シーンフィルタヘッダ
00022  * @author Junpee
00023  */
00024 
00025 #ifndef SCENE_FILTER_H_
00026 #define SCENE_FILTER_H_
00027 
00028 namespace Lamp{
00029 
00030 class Scene;
00031 class TextReader;
00032 
00033 //------------------------------------------------------------------------------
00034 /**
00035  * シーンフィルタ
00036  *
00037  * シーン論理チェックフィルタ<br>
00038  * 書式は"SceneLogicCheck"<br>
00039  * シーンに異常がないかチェックする。<br>
00040  * <br>
00041  * ピクチャパス変更フィルタ<br>
00042  * 書式は"ChangePicturePath newPath"<br>
00043  * newPathに設定したいピクチャ相対パスを入力する。<br>
00044  */
00045 class SceneFilter{
00046 public:
00047     /**
00048      * コンストラクタ
00049      */
00050     SceneFilter(Scene* scene = NULL);
00051 
00052     /**
00053      * デストラクタ
00054      */
00055     virtual ~SceneFilter();
00056 
00057     /**
00058      * フィルタ
00059      * @param command フィルタ命令
00060      * @return 成功すればtrue
00061      */
00062     virtual bool filter(const String& command);
00063 
00064     /**
00065      * フィルタ
00066      * @param reader テキストリーダ
00067      * @return 成功すればtrue
00068      */
00069     virtual bool filter(TextReader* reader);
00070 
00071     /**
00072      * シーンの設定
00073      */
00074     virtual void setScene(Scene* scene){ scene_ = scene; }
00075 
00076 private:
00077     // コピーコンストラクタの隠蔽
00078     SceneFilter(const SceneFilter& copy);
00079 
00080     // 代入コピーの隠蔽
00081     void operator =(const SceneFilter& copy);
00082 
00083     // シーン
00084     Scene* scene_;
00085 };
00086 
00087 //------------------------------------------------------------------------------
00088 } // End of namespace Lamp
00089 #endif // End of SCENE_FILTER_H_
00090 //------------------------------------------------------------------------------

Generated on Wed Mar 16 10:29:35 2005 for Lamp by doxygen 1.3.2