Ejemplo n.º 1
0
 /// <summary>
 /// @brief コンストラクタ
 /// </summary>
 /// <param name="container">自身を組み込むコンテナ</param>
 public EnemyInformation(GameContainer container, int life, ScoreComponent sc)
     : base(container)
 {
     Life = life;
     Count = 15;
     Speed = 5.0f;
     SC = sc;
 }
Ejemplo n.º 2
0
 public EnemyController(GameContainer container, Player p, ScoreComponent sc)
     : base(container, "enemy.csv")
 {
     PlayerPosition = p;
     SC = sc;
 }
Ejemplo n.º 3
0
 /// <summary>
 /// @brief コンストラクタ
 /// </summary>
 /// <param name="from"></param>
 /// <param name="to"></param>
 public BehindAppearEnemyFactory(Vector3 to, Direction dir, float speed, Player pos, ScoreComponent sc)
     : base()
 {
     From = new Vector3 { x = to.x + 300.0f * (dir == Direction.LEFT ? -1 : 1), y = -500.0f, z = 0.0f };
     To = to;
     Speed = speed;
     PlayerPosition = pos;
     SC = sc;
 }
Ejemplo n.º 4
0
 public InfrontAppearEnemyFactory(Vector3 to, Direction dir, int stayTime, Player pos, ScoreComponent sc)
 {
     To = to;
     Dir = dir;
     StayTime = stayTime;
     PlayerPosition = pos;
     SC = sc;
 }