コード例 #1
0
 public SharedLetter(Plane onPlane, Point startingPoint, bool smaller, char letter, SharedDirection sharedDirection, int letterDirection, Dictionary <int, int> duration)
 {
     this.onPlane         = onPlane;
     this.smaller         = smaller;
     this.letter          = letter;
     this.sharedDirection = sharedDirection;
     this.letterDirection = letterDirection;
     this.startingPoint   = startingPoint;
     this.duration        = duration;
 }
コード例 #2
0
 // Construct by specifying the number of rotations.
 protected NonCircularDirection(Point startingPoint, int direction, float directionLength,
                                float directionDivisor, List <bool> canShootList, Dictionary <int, int> duration, int directionDimension, int numberOfRotations)
     : base(startingPoint, direction, canShootList, duration, directionDimension, numberOfRotations)
 {
     sharedDirection = new SharedDirection(directionLength, directionDivisor);
 }
コード例 #3
0
 protected NonCircularDirection()
 {
     sharedDirection = new SharedDirection(10, 1);
 }
コード例 #4
0
 // Construct without specifying the  length property cause it doesnh't exist.
 protected NonCircularDirection(Point startingPoint, int direction,
                                float directionDivisor, List <bool> canShootList, Dictionary <int, int> duration, int directionDimension)
     : base(startingPoint, direction, canShootList, duration, directionDimension, 1)
 {
     sharedDirection = new SharedDirection(10 * directionDivisor, directionDivisor);
 }
コード例 #5
0
 protected CircularDirection() : base()
 {
     sharedDirection = new SharedDirection(10, 1);
 }