コード例 #1
0
ファイル: TTCBobomb.cs プロジェクト: chaosBrick/STROOP
 public TtcBobomb(TtcRng rng, uint address) :
     this(
         rng : rng,
         blinkingTimer : Config.Stream.GetInt32(address + 0xF4),
         withinMarioRange : PositionAngle.GetDistance(PositionAngle.Obj(address), PositionAngle.Mario) < 4000 ? 1 : 0)
 {
 }
コード例 #2
0
        public MapObjectHomeLine(PositionAngle posAngle)
            : base()
        {
            _objPosAngle  = PositionAngle.Obj(posAngle.GetObjAddress());
            _homePosAngle = PositionAngle.ObjHome(posAngle.GetObjAddress());

            LineWidth = 3;
            LineColor = Color.Black;
        }
コード例 #3
0
        public MapHomeLineObject(uint objAddress)
            : base()
        {
            _objPosAngle  = PositionAngle.Obj(objAddress);
            _homePosAngle = PositionAngle.ObjHome(objAddress);

            OutlineWidth = 3;
            OutlineColor = Color.Black;
        }
コード例 #4
0
        protected override List <Vector3> GetVertices(MapGraphics graphics)
        {
            List <Vector3> vertices = new List <Vector3>();

            foreach (var posAngle in positionAngleProvider())
            {
                var address       = posAngle.GetObjAddress();
                var _objPosAngle  = PositionAngle.Obj(address);
                var _homePosAngle = PositionAngle.ObjHome(address);
                vertices.Add(new Vector3((float)_homePosAngle.X, (float)_homePosAngle.Y, (float)_homePosAngle.Z));
                vertices.Add(new Vector3((float)_objPosAngle.X, (float)_objPosAngle.Y, (float)_objPosAngle.Z));
            }
            return(vertices);
        }
コード例 #5
0
 public MapObjectCeilingObject(uint objAddress)
     : base()
 {
     _posAngle   = PositionAngle.Obj(objAddress);
     _objAddress = objAddress;
 }
コード例 #6
0
ファイル: MapObjectObject.cs プロジェクト: Madghostek/STROOP
 public MapObjectObject(uint objAddress)
     : base()
 {
     _obj      = new ObjectDataModel(objAddress);
     _posAngle = PositionAngle.Obj(objAddress);
 }
コード例 #7
0
 public MapObjectObject(PositionAngle posAngle)
     : base()
 {
     _obj      = new ObjectDataModel(posAngle.GetObjAddress());
     _posAngle = PositionAngle.Obj(posAngle.GetObjAddress());
 }
コード例 #8
0
 public override void InitSubTrackerContextMenuStrip(MapTab mapTab, ContextMenuStrip targetStrip)
 {
     base.InitSubTrackerContextMenuStrip(mapTab, targetStrip);
     MapObjectObject.AddObjectSubTrackers(tracker,
                                          _objName,
                                          targetStrip,
                                          () => Config.StroopMainForm.ObjectSlotsManager.GetLoadedObjectsWithPredicate(predicate).ConvertAll(obj => PositionAngle.Obj(obj.Address))
                                          );
 }
コード例 #9
0
 private MapMultipleObjects(string name, Lazy <Image> image, Lazy <Image> mapImage) : base()
 {
     _objName              = name;
     _objImage             = image;
     _objMapImage          = mapImage;
     positionAngleProvider = () => Config.StroopMainForm.ObjectSlotsManager.GetLoadedObjectsWithPredicate(predicate).ConvertAll(_ => PositionAngle.Obj(_.Address)).ToArray();
 }