コード例 #1
0
 public Text(BitmapFont font, int BoundX, int BoundY)
 {
     this.font   = font;
     BoundingBox = new DiscreteVector2(BoundX, BoundY);
     text        = null;
     displayText = null;
 }
コード例 #2
0
 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;
 }
コード例 #3
0
        //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;
        }
コード例 #4
0
 public void AddTransition(Object2D objectReference, double animationLength, double startTime, DiscreteVector2 start, DiscreteVector2 finish)
 {
     animationSequence.Add(new TranslationAC(objectReference, animationLength, startTime, start, finish));
 }
コード例 #5
0
 public DiscreteVector2(DiscreteVector2 old)
 {
     this.X = old.X;
     this.Y = old.Y;
 }