From 1cf178dff7cc944ba92d217c1442e14345e5e025 Mon Sep 17 00:00:00 2001
From: weberma73121 <weberma73121@th-nuernberg.de>
Date: Mon, 18 Jan 2021 17:53:26 +0100
Subject: [PATCH] Comments

---
 Bomber.cpp          | 2 +-
 Bomber.hpp          | 2 +-
 Enemy.cpp           | 2 +-
 Enemy.hpp           | 2 +-
 Enemyprojectile.cpp | 2 +-
 Enemyprojectile.hpp | 2 +-
 Tank.cpp            | 2 +-
 Tank.hpp            | 2 +-
 Trooper.cpp         | 2 +-
 Trooper.hpp         | 2 +-
 main.cpp            | 1 +
 player.cpp          | 5 ++++-
 12 files changed, 15 insertions(+), 11 deletions(-)

diff --git a/Bomber.cpp b/Bomber.cpp
index 8050578..b937b62 100644
--- a/Bomber.cpp
+++ b/Bomber.cpp
@@ -1,5 +1,5 @@
 #include "Bomber.hpp"
-//WeberMa73121: implementation enum direction dir ersetzt int direcion---------------------------------------
+//WeberMa73121: implementation enum direction dir replaces int direcion---------------------------------------
 //Hauerch71498 ----------------------------------------------------------------------------------------------
 Bomber::Bomber(float x, float y, enum direction dir, int animationstep)
  : Enemy(5,x,y,dir,animationstep)
diff --git a/Bomber.hpp b/Bomber.hpp
index c24ac0d..0dc30c0 100644
--- a/Bomber.hpp
+++ b/Bomber.hpp
@@ -2,7 +2,7 @@
 #define BOMBER_HPP
 
 #include "Enemy.hpp"
-//WeberMa73121: implementation enum direction dir ersetzt int direcion---------------------------------------
+//WeberMa73121: implementation enum direction dir replaces int direcion---------------------------------------
 //Hauerch71498 ----------------------------------------------------------------------------------------------
 class Level;
 
diff --git a/Enemy.cpp b/Enemy.cpp
index d38049f..2d1e500 100644
--- a/Enemy.cpp
+++ b/Enemy.cpp
@@ -1,7 +1,7 @@
 #include "Enemy.hpp"
 #include "Level.hpp"
 #include "Enemyprojectile.hpp"
-//WeberMa73121: implementation enum direction dir ersetzt int direcion---------------------------------------
+//WeberMa73121: implementation enum direction dir replaces int direcion---------------------------------------
 //Hauerch71498 ----------------------------------------------------------------------------------------------
 Enemy::Enemy(int health,float x, float y, enum direction dir, int animationstep)
 {
diff --git a/Enemy.hpp b/Enemy.hpp
index a2c6d36..cc08cd0 100644
--- a/Enemy.hpp
+++ b/Enemy.hpp
@@ -4,7 +4,7 @@
 #include "Entity.hpp"
 #include "PixelBuffer.hpp"
 #include "Platform.hpp"
-//WeberMa73121: implementation enum direction dir ersetzt int direcion---------------------------------------
+//WeberMa73121: implementation enum direction dir replaces int direcion---------------------------------------
 //Hauerch71498 ----------------------------------------------------------------------------------------------
 class Level;
 
diff --git a/Enemyprojectile.cpp b/Enemyprojectile.cpp
index f4d9dcb..4d876b4 100644
--- a/Enemyprojectile.cpp
+++ b/Enemyprojectile.cpp
@@ -1,7 +1,7 @@
 #include "Enemyprojectile.hpp"
 #include "Platform.hpp"
 #include "Level.hpp"
-//WeberMa73121: implementation enum direction dir ersetzt int direction---------------------------------------
+//WeberMa73121: implementation enum direction dir replaces int direction---------------------------------------
 //Hauerch71498 ----------------------------------------------------------------------------------------------
 EnemyProjectile::EnemyProjectile(float x, float y, enum direction dir)
     : Projectile(x,y,dir)
diff --git a/Enemyprojectile.hpp b/Enemyprojectile.hpp
index 78971c7..aacb8b2 100644
--- a/Enemyprojectile.hpp
+++ b/Enemyprojectile.hpp
@@ -1,7 +1,7 @@
 #ifndef ENEMYPROJECTILE_HPP
 #define ENEMYPROJECTILE_HPP
 #include "Projectile.hpp"
-//WeberMa73121: implementation enum direction dir ersetzt int direcion---------------------------------------
+//WeberMa73121: implementation enum direction dir replaces int direcion---------------------------------------
 //Hauerch71498 ----------------------------------------------------------------------------------------------
 Color constexpr ENEMY_PROJECTILE_COLOR = _2;
 class EnemyProjectile: public Projectile
diff --git a/Tank.cpp b/Tank.cpp
index 731b7a1..e00098c 100644
--- a/Tank.cpp
+++ b/Tank.cpp
@@ -1,5 +1,5 @@
 #include "Tank.hpp"
-//WeberMa73121: implementation enum direction dir ersetzt int direction---------------------------------------
+//WeberMa73121: implementation enum direction dir replaces int direction---------------------------------------
 //Hauerch71498 ----------------------------------------------------------------------------------------------
 Tank::Tank(float x, float y, enum direction dir, int animationstep)
  : Enemy(3,x,y,dir,animationstep)
diff --git a/Tank.hpp b/Tank.hpp
index 48e95d2..d9566aa 100644
--- a/Tank.hpp
+++ b/Tank.hpp
@@ -2,7 +2,7 @@
 #define TANK_HPP
 #include "Enemy.hpp"
 #include "Level.hpp"
-//WeberMa73121: implementation enum direction dir ersetzt int direcion---------------------------------------
+//WeberMa73121: implementation enum direction dir replaces int direcion---------------------------------------
 //Hauerch71498 ----------------------------------------------------------------------------------------------
 class Tank: public Enemy // Fight the Power!
 {
diff --git a/Trooper.cpp b/Trooper.cpp
index 0fef0d0..1079b65 100644
--- a/Trooper.cpp
+++ b/Trooper.cpp
@@ -1,6 +1,6 @@
 #include "Level.hpp"
 #include "Trooper.hpp"
-//WeberMa73121: implementation enum direction dir ersetzt int direction---------------------------------------
+//WeberMa73121: implementation enum direction dir replaces int direction---------------------------------------
 //Hauerch71498 ----------------------------------------------------------------------------------------------
 
 Trooper::Trooper(float x, float y, enum direction dir, int animationstep)
diff --git a/Trooper.hpp b/Trooper.hpp
index 3300cd5..cbac4ca 100644
--- a/Trooper.hpp
+++ b/Trooper.hpp
@@ -1,6 +1,6 @@
 #ifndef TROOPER_HPP
 #define TROOPER_HPP
-//WeberMa73121: implementation enum direction dir ersetzt int direcion---------------------------------------
+//WeberMa73121: implementation enum direction dir replaces int direcion---------------------------------------
 //Hauerch71498 ----------------------------------------------------------------------------------------------
 #include "Enemy.hpp"
 class Level;
diff --git a/main.cpp b/main.cpp
index 57edc66..8cae4c8 100644
--- a/main.cpp
+++ b/main.cpp
@@ -259,6 +259,7 @@ public:
                 framebuffer.blit_topleft(i.ScorePos,i.getScoreSprite());
             }
         }
+        //weberma73121
         framebuffer.blit_topleft({ 3, 3 },player_.getLivesSprite());
         // kruegerzo72182>
         // <hoffmanncl72341
diff --git a/player.cpp b/player.cpp
index 9fde6ab..2b5d5a6 100644
--- a/player.cpp
+++ b/player.cpp
@@ -130,10 +130,11 @@ Player::Shader::Shader(Player const &player) :
     PixelBuffer(PLAYER_W, (PLAYER_H + 2)), player(player)
 {
 }
-
+//hoffmanncl72341----------------------------
 Color Player::Shader::peekUnchecked(PixelPoint const &pos) const
 {
     auto const &basesprite = [this]() {
+        //hoffmanncl72341----------------------------
         switch (player.dir) {
         case direction::BACK:
             return back[player.animationstep];
@@ -148,6 +149,7 @@ Color Player::Shader::peekUnchecked(PixelPoint const &pos) const
         default:
             return front[player.animationstep];
         }
+        //hoffmanncl72341-----------------------------
     }();
     if(player.timetillreload == 0.0f) {
         return basesprite.peek(pos);
@@ -162,6 +164,7 @@ Color Player::Shader::peekUnchecked(PixelPoint const &pos) const
 	}
 	return basesprite.peek(pos);
 }
+//hoffmanncl72341---------------------------
 
 PixelBuffer const& Player::getSprite()
 {
-- 
GitLab