home *** CD-ROM | disk | FTP | other *** search
/ 404 Jogos / CLJG.iso / Aventura / starisland.swf / scripts / __Packages / illusoft / Character.as next >
Encoding:
Text File  |  2007-12-10  |  730 b   |  28 lines

  1. class illusoft.Character
  2. {
  3.    var game;
  4.    var wheelPrimitive;
  5.    var dmc;
  6.    var ClearChilds;
  7.    function Character(dynamicsEngine, gameMC, game)
  8.    {
  9.       super();
  10.       this.game = game;
  11.       this.Init();
  12.       this.wheelPrimitive = new org.cove.flade.primitives.Wheel(580,450,29,gameMC);
  13.       dynamicsEngine.addPrimitive(this.wheelPrimitive);
  14.    }
  15.    function SetMC(mc)
  16.    {
  17.       this.dmc = mc;
  18.       this.game.worldPos.x = this.dmc._x;
  19.       this.game.worldPos.y = this.dmc._y;
  20.       this.wheelPrimitive.prev.x = this.wheelPrimitive.curr.x = this.dmc._x;
  21.       this.wheelPrimitive.prev.y = this.wheelPrimitive.curr.y = this.dmc._y;
  22.    }
  23.    function Init()
  24.    {
  25.       this.ClearChilds();
  26.    }
  27. }
  28.