コード例 #1
0
 /*
  * public ColToken(int x, int y, int _width, int _height, int _engine_id, ColType type, CollisionEngine _ce)
  * {
  *  loc_x = x;
  *  loc_y = y;
  *  width = _width;
  *  height = _height;
  *  engine_id = _engine_id;
  *  local_type = type;
  *  ce = _ce;
  *  collisions = new List<Collision>();
  *  updated_this_frame = false;
  * }
  */
 public ColToken(ColType type, CollisionEngine _ce, int _engine_id, object _parent)
 {
     local_type         = type;
     ce                 = _ce;
     parent             = _parent;
     updated_this_frame = false;
     cols               = new List <ColToken>();
     engine_id          = _engine_id;
 }
コード例 #2
0
 public ColToken(ColType type, CollisionEngine _ce, int _engine_id, object _parent)
 {
     local_type = type;
     ce = _ce;
     parent = _parent;
     updated_this_frame = false;
     cols = new List<ColToken>();
     engine_id = _engine_id;
 }