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) { }
public MapObjectHomeLine(PositionAngle posAngle) : base() { _objPosAngle = PositionAngle.Obj(posAngle.GetObjAddress()); _homePosAngle = PositionAngle.ObjHome(posAngle.GetObjAddress()); LineWidth = 3; LineColor = Color.Black; }
public MapHomeLineObject(uint objAddress) : base() { _objPosAngle = PositionAngle.Obj(objAddress); _homePosAngle = PositionAngle.ObjHome(objAddress); OutlineWidth = 3; OutlineColor = Color.Black; }
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); }
public MapObjectCeilingObject(uint objAddress) : base() { _posAngle = PositionAngle.Obj(objAddress); _objAddress = objAddress; }
public MapObjectObject(uint objAddress) : base() { _obj = new ObjectDataModel(objAddress); _posAngle = PositionAngle.Obj(objAddress); }
public MapObjectObject(PositionAngle posAngle) : base() { _obj = new ObjectDataModel(posAngle.GetObjAddress()); _posAngle = PositionAngle.Obj(posAngle.GetObjAddress()); }
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)) ); }
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(); }