Mercurial > hg > Members > kono > Cerium
diff old/simple_pack/trash/scene.cpp @ 507:735f76483bb2
Reorganization..
author | Shinji KONO <kono@ie.u-ryukyu.ac.jp> |
---|---|
date | Mon, 12 Oct 2009 09:39:35 +0900 |
parents | TaskManager/Test/simple_pack/trash/scene.cpp@0c8ae614d421 |
children |
line wrap: on
line diff
--- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/old/simple_pack/trash/scene.cpp Mon Oct 12 09:39:35 2009 +0900 @@ -0,0 +1,39 @@ +#include <iostream> +#include "polygon.h" +#include "xml.h" +#include "texture.h" +#include "demonstration.h" +#include "scene.h" +#include "pad.h" +using namespace std; + +Scene::Scene() +{ + action_scene = &Scene::title_init; +} + +void Scene::title_init() +{ + demo = new Demonstration; + demo->list = new Polygon; + demo->list->set_data("xml/title.xml"); + + action_scene = &Scene::title; +} + +void Scene::title() +{ + (demo->*demo->action_demo)(); + + if(demo->action_demo == NULL) + { + action_scene = &Scene::title_end; + } +} + +void Scene::title_end() +{ + delete demo->list; + delete demo; + action_scene = NULL; +}