Exemple #1
0
 public Linear(CoordinateSystem entity, Vector2 direction)
 {
     PathAwareEntity = entity as PathAware;
     Position = entity.Position;
     if (direction.X != 0 || direction.Y != 0)
     {
         direction.Normalize();
     }
     Direction = direction;
 }
Exemple #2
0
 public Linear(Vector2 position , Vector2 direction)
 {
     PathAwareEntity = null;
     Position = position;
     if (direction.X != 0 || direction.Y != 0)
     {
         direction.Normalize();
     }
     Direction = direction;
 }
Exemple #3
0
 public User(CoordinateSystem entity, Rectangle screenBounds)
 {
     PathAwareEntity = entity as PathAware;
     Position = entity.Position;
     this.screenBounds = screenBounds;
 }
Exemple #4
0
 /*public User()
     : this(new Vector2()) { }*/
 public User(Vector2 position, Rectangle screenBounds)
 {
     PathAwareEntity = null;
     Position = position;
     this.screenBounds = screenBounds;
 }