コード例 #1
0
ファイル: Tower.cs プロジェクト: MadRubicant/GameDesign
 public Projectile Fire(GameObject Target)
 {
     if (AttackType == null) {
         // TODO add logging
         return null;
     }
     else if (CanFire == true) {
         TimeSinceLastShot = 0f;
         CanFire = false;
         return AttackType(Target, this);
     }
     else return null;
 }
コード例 #2
0
ファイル: Logging.cs プロジェクト: MadRubicant/GameDesign
 public void DebugLog(GameObject Obj, string message = "")
 {
     Type ObjectType = Obj.GetType();
 }
コード例 #3
0
ファイル: Projectile.cs プロジェクト: MadRubicant/GameDesign
 public static Projectile DebugProjectile(GameObject Target, Tower SourceTower)
 {
     Projectile Proj = new Projectile(new Animation(TextureManager.MainManager["LaserYellow"], 1000), SourceTower.Center, new Vector2(100, 0), Target);
     return Proj;
 }
コード例 #4
0
ファイル: Projectile.cs プロジェクト: MadRubicant/GameDesign
 public Projectile(Animation animation, Vector2 Position, Vector2 Velocity, GameObject Target)
     : base(animation, Position, Velocity)
 {
     this.Target = Target;
         RotMode = RotationMode.Velocity;
 }