public static Projective Create(GameWorld gameWorld, ProjectiveType projectiveType, Vector2 position, Vector2 direction, float acceleration) { Projective projective = null; switch (projectiveType) { case ProjectiveType.Arrow: projective = new Arrow(gameWorld); break; default: break; } projective.Position = position; projective.Init(direction, acceleration); return projective; }
public static Projective Create(GameWorld gameWorld, ProjectiveType projectiveType) { return Create(gameWorld, projectiveType, Vector2.Zero, Vector2.Zero, 0.0f); }