00001
00002
00003
00004
00005
00006
00007
00008
00009
00010
00011
00012
00013
00014
00015
00016
00017
00018
00025 #include <game.h>
00026
00037 actionMesh::actionMesh(ACTION_TYPE Action) : action(Action)
00038 {
00039 color = SColor(255,255,255,255);
00040 }
00041
00042 actionMesh::~actionMesh()
00043 {
00044
00045 }
00046
00052 int actionMesh::init(int Id,IAnimatedMeshSceneNode* Node, int Combi)
00053 {
00054 combi = Combi;
00055 int r = staticMesh::init(Id,Node);
00056
00057 getNode()->setID(getId()<<8);
00058 return r;
00059 }
00060
00061 ACTION_TYPE actionMesh::getAction()
00062 {
00063 return action;
00064 }
00065
00066 int actionMesh::getCombi()
00067 {
00068 return combi;
00069 }
00070
00071 SColor actionMesh::getColor()
00072 {
00073 return color;
00074 }
00075
00076
00077
00086 observationMesh::observationMesh(ACTION_TYPE Action) : actionMesh(Action)
00087 {
00088 color = SColor(0,0,255,0);
00089 }
00090
00091 observationMesh::~observationMesh()
00092 {
00093
00094 }
00095
00101 int observationMesh::init(int Id, IAnimatedMeshSceneNode* Node, int Combi)
00102 {
00103 return actionMesh::init(Id,Node,Combi);
00104 }
00105
00106
00107
00117 prendreMesh::prendreMesh(ACTION_TYPE act) : observationMesh(act)
00118 {
00119 color = SColor(255,255,0,0);
00120 }
00121
00122 prendreMesh::~prendreMesh()
00123 {
00124
00125 }
00126
00133 int prendreMesh::init(int Id, IAnimatedMeshSceneNode* Node, int Combi, int It)
00134 {
00135 it=It;
00136 return observationMesh::init(Id,Node,Combi);
00137 }
00138
00139 int prendreMesh::getItem()
00140 {
00141 return it;
00142 }
00143
00144
00145
00155 animateMesh::animateMesh(ACTION_TYPE act) : observationMesh(act)
00156 {
00157 color = SColor(255,0,0,255);
00158 }
00159
00160 animateMesh::~animateMesh()
00161 {
00162
00163 }
00164
00173 int animateMesh::init(int Id, IAnimatedMeshSceneNode* Node, int Combi, int Anim, int Begin, int End)
00174 {
00175 anim=Anim;
00176 begin=Begin;
00177 end=End;
00178 return observationMesh::init(Id,Node,Combi);
00179 }
00180
00181 int animateMesh::getAnim()
00182 {
00183 return anim;
00184 }
00185
00186 int animateMesh::getBegin()
00187 {
00188 return begin;
00189 }
00190
00191 int animateMesh::getEnd()
00192 {
00193 return end;
00194 }
00195
00196
00197