//------------------------------------------------------------------------------
// Lamp : Open source game middleware
// Copyright (C) 2004  Junpei Ohtani ( Email : junpee@users.sourceforge.jp )
//
// This library is free software; you can redistribute it and/or
// modify it under the terms of the GNU Lesser General Public
// License as published by the Free Software Foundation; either
// version 2.1 of the License, or (at your option) any later version.
//
// This library 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
// Lesser General Public License for more details.
//
// You should have received a copy of the GNU Lesser General Public
// License along with this library; if not, write to the Free Software
// Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307  USA
//------------------------------------------------------------------------------

/** @file
 * ピクチャパス変更フィルタヘッダ
 * @author Junpee
 */

#ifndef CHANGE_PICTURE_PATH_FILTER_H_
#define CHANGE_PICTURE_PATH_FILTER_H_

#include <Graphics/SceneFilter/SceneFilterInterface.h>

namespace Lamp{

//------------------------------------------------------------------------------
/**
 * ピクチャパス変更フィルタ
 *
 * 書式は"ChangePicturePath newPath"<br>
 * newPathに設定したいピクチャ相対パスを入力する。
 */
class ChangePicturePathFilter : public SceneFilterInterface{
friend class SceneFilter;
protected:
	/**
	 * コンストラクタ
	 * @param scene フィルタをかけるシーン
	 */
	ChangePicturePathFilter(Scene* scene);

	/**
	 * デストラクタ
	 */
	virtual ~ChangePicturePathFilter();

	/**
	 * フィルタ
	 * @param command コマンド
	 * @return 成功すればtrue
	 */
	virtual bool filter(const String& command);

	/// ピクチャのフィルタ
	virtual bool filterPicture();

private:
	// パス
	String path_;
};

//------------------------------------------------------------------------------
} // End of namespace Lamp
#endif // End of CHANGE_PICTURE_PATH_FILTER_H_
//------------------------------------------------------------------------------
