Mercurial > hg > Game > Cerium
view old/simple_pack/trash/scene.cpp @ 639:91d03774c407 draft
fix
author | Shinji KONO <kono@ie.u-ryukyu.ac.jp> |
---|---|
date | Thu, 19 Nov 2009 18:45:24 +0900 |
parents | 3bc98f6d31ff |
children |
line wrap: on
line source
#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; }