annotate TaskManager/Test/simple_pack/trash/demonstration.cpp @ 69:c9b973f0673e

*** empty log message ***
author chiaki
date Sun, 17 Feb 2008 23:07:52 +0900
parents 0c8ae614d421
children
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
53
0c8ae614d421 Initial revision
chiaki
parents:
diff changeset
1 #include <iostream>
0c8ae614d421 Initial revision
chiaki
parents:
diff changeset
2 #include "polygon.h"
0c8ae614d421 Initial revision
chiaki
parents:
diff changeset
3 #include "xml.h"
0c8ae614d421 Initial revision
chiaki
parents:
diff changeset
4 #include "texture.h"
0c8ae614d421 Initial revision
chiaki
parents:
diff changeset
5 #include "demonstration.h"
0c8ae614d421 Initial revision
chiaki
parents:
diff changeset
6 #include "pad.h"
0c8ae614d421 Initial revision
chiaki
parents:
diff changeset
7 using namespace std;
0c8ae614d421 Initial revision
chiaki
parents:
diff changeset
8
0c8ae614d421 Initial revision
chiaki
parents:
diff changeset
9 Demonstration::Demonstration()
0c8ae614d421 Initial revision
chiaki
parents:
diff changeset
10 {
0c8ae614d421 Initial revision
chiaki
parents:
diff changeset
11 action_demo = &Demonstration::test_play;
0c8ae614d421 Initial revision
chiaki
parents:
diff changeset
12 }
0c8ae614d421 Initial revision
chiaki
parents:
diff changeset
13
0c8ae614d421 Initial revision
chiaki
parents:
diff changeset
14 void Demonstration::test_play()
0c8ae614d421 Initial revision
chiaki
parents:
diff changeset
15 {
0c8ae614d421 Initial revision
chiaki
parents:
diff changeset
16 list->draw();
0c8ae614d421 Initial revision
chiaki
parents:
diff changeset
17 if(pad(RIGHT))
0c8ae614d421 Initial revision
chiaki
parents:
diff changeset
18 {
0c8ae614d421 Initial revision
chiaki
parents:
diff changeset
19 //action_demo = &Demonstration::test_end;
0c8ae614d421 Initial revision
chiaki
parents:
diff changeset
20 action_demo = NULL;
0c8ae614d421 Initial revision
chiaki
parents:
diff changeset
21 }
0c8ae614d421 Initial revision
chiaki
parents:
diff changeset
22 }