home *** CD-ROM | disk | FTP | other *** search
- class illusoft.Character
- {
- var game;
- var wheelPrimitive;
- var dmc;
- var ClearChilds;
- function Character(dynamicsEngine, gameMC, game)
- {
- super();
- this.game = game;
- this.Init();
- this.wheelPrimitive = new org.cove.flade.primitives.Wheel(580,450,29,gameMC);
- dynamicsEngine.addPrimitive(this.wheelPrimitive);
- }
- function SetMC(mc)
- {
- this.dmc = mc;
- this.game.worldPos.x = this.dmc._x;
- this.game.worldPos.y = this.dmc._y;
- this.wheelPrimitive.prev.x = this.wheelPrimitive.curr.x = this.dmc._x;
- this.wheelPrimitive.prev.y = this.wheelPrimitive.curr.y = this.dmc._y;
- }
- function Init()
- {
- this.ClearChilds();
- }
- }
-