public Text(BitmapFont font, int BoundX, int BoundY) { this.font = font; BoundingBox = new DiscreteVector2(BoundX, BoundY); text = null; displayText = null; }
public TranslationAC(Object2D objectReference, double animationLength, double startTime, DiscreteVector2 start, DiscreteVector2 finish) { this.objectReference = objectReference; this.animationLength = animationLength; this.animationStartTime = startTime; Stopped = false; this.start = start; this.finish = finish; }
//private bool drawLater = false; public Object2D(Drawable drawable, int x, int y, Object2D child = null) { position = new DiscreteVector2(x, y); animator = new Animator(); childObjects = new List <Object2D>(); if (child != null) { childObjects.Add(child); } this.drawable = drawable; tintColor = Color.White; }
public void AddTransition(Object2D objectReference, double animationLength, double startTime, DiscreteVector2 start, DiscreteVector2 finish) { animationSequence.Add(new TranslationAC(objectReference, animationLength, startTime, start, finish)); }
public DiscreteVector2(DiscreteVector2 old) { this.X = old.X; this.Y = old.Y; }