Browse Source

Added license

POSITIVE MENTAL ATTITUDE 8 years ago
parent
commit
fe24a7ae64
7 changed files with 135 additions and 7 deletions
  1. 20 1
      src/Bullet.cpp
  2. 19 1
      src/Map.cpp
  3. 20 1
      src/Menu.cpp
  4. 20 1
      src/Player.cpp
  5. 19 1
      src/Powerup.cpp
  6. 18 1
      src/Starlight.cpp
  7. 19 1
      src/main.cpp

+ 20 - 1
src/Bullet.cpp

@@ -1,3 +1,22 @@
+/**
+ *  one room arena
+ *  Copyright (C) 2016 POSITIVE MENTAL ATTITUDE
+ *
+ *  This program is free software: you can redistribute it and/or modify
+ *  it under the terms of the GNU General Public License as published by
+ *  the Free Software Foundation, version 3 of the License.
+ *
+ *  This program is distributed in the hope that it will be useful,
+ *  but WITHOUT ANY WARRANTY; without even the implied warranty of
+ *  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
+ *  GNU General Public License for more details.
+ *
+ *  You should have received a copy of the GNU General Public License
+ *  along with this program.  If not, see <http://www.gnu.org/licenses/>.
+ */
+
+
+
 #include <cmath>
 #include "Bullet.hpp"
 #include "Map.hpp"
@@ -97,4 +116,4 @@ void Bullet::setColor(Color color)
 void Bullet::madeByPlayer()
 {
 	_madeByPlayer = true;
-}
+}

+ 19 - 1
src/Map.cpp

@@ -1,3 +1,21 @@
+/**
+ *  one room arena
+ *  Copyright (C) 2016 POSITIVE MENTAL ATTITUDE
+ *
+ *  This program is free software: you can redistribute it and/or modify
+ *  it under the terms of the GNU General Public License as published by
+ *  the Free Software Foundation, version 3 of the License.
+ *
+ *  This program is distributed in the hope that it will be useful,
+ *  but WITHOUT ANY WARRANTY; without even the implied warranty of
+ *  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
+ *  GNU General Public License for more details.
+ *
+ *  You should have received a copy of the GNU General Public License
+ *  along with this program.  If not, see <http://www.gnu.org/licenses/>.
+ */
+
+
 #include <cmath>
 #include "Map.hpp"
 
@@ -47,4 +65,4 @@ void Map::destroy(const Vector2f coords, int radius)
 		}
 	}
 	_tex.loadFromImage(_img);
-}
+}

+ 20 - 1
src/Menu.cpp

@@ -1,3 +1,22 @@
+/**
+ *  one room arena
+ *  Copyright (C) 2016 POSITIVE MENTAL ATTITUDE
+ *
+ *  This program is free software: you can redistribute it and/or modify
+ *  it under the terms of the GNU General Public License as published by
+ *  the Free Software Foundation, version 3 of the License.
+ *
+ *  This program is distributed in the hope that it will be useful,
+ *  but WITHOUT ANY WARRANTY; without even the implied warranty of
+ *  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
+ *  GNU General Public License for more details.
+ *
+ *  You should have received a copy of the GNU General Public License
+ *  along with this program.  If not, see <http://www.gnu.org/licenses/>.
+ */
+
+
+
 #include "Menu.hpp"
 #include "Player.hpp"
 #include <sstream>
@@ -145,4 +164,4 @@ void Menu::render(RenderTarget& target) const
 		target.draw(*_menu[_menu.size() - 2]);
 		target.draw(*_menu[_menu.size() - 1]);
 	}
-}
+}

+ 20 - 1
src/Player.cpp

@@ -1,3 +1,22 @@
+/**
+ *  one room arena
+ *  Copyright (C) 2016 POSITIVE MENTAL ATTITUDE
+ *
+ *  This program is free software: you can redistribute it and/or modify
+ *  it under the terms of the GNU General Public License as published by
+ *  the Free Software Foundation, version 3 of the License.
+ *
+ *  This program is distributed in the hope that it will be useful,
+ *  but WITHOUT ANY WARRANTY; without even the implied warranty of
+ *  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
+ *  GNU General Public License for more details.
+ *
+ *  You should have received a copy of the GNU General Public License
+ *  along with this program.  If not, see <http://www.gnu.org/licenses/>.
+ */
+
+
+
 #include <cmath>
 #include <iostream>
 #include "Player.hpp"
@@ -324,4 +343,4 @@ Vector2f Player::movementHelper(float delta, bool key1, bool key2, float& veloci
 	}
 	
 	return rotated * velocity;
-}
+}

+ 19 - 1
src/Powerup.cpp

@@ -1,3 +1,21 @@
+/**
+ *  one room arena
+ *  Copyright (C) 2016 POSITIVE MENTAL ATTITUDE
+ *
+ *  This program is free software: you can redistribute it and/or modify
+ *  it under the terms of the GNU General Public License as published by
+ *  the Free Software Foundation, version 3 of the License.
+ *
+ *  This program is distributed in the hope that it will be useful,
+ *  but WITHOUT ANY WARRANTY; without even the implied warranty of
+ *  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
+ *  GNU General Public License for more details.
+ *
+ *  You should have received a copy of the GNU General Public License
+ *  along with this program.  If not, see <http://www.gnu.org/licenses/>.
+ */
+
+
 #include <ctime>
 #include "Powerup.hpp"
 #include "Map.hpp"
@@ -105,4 +123,4 @@ void PowerupManager::draw(RenderTarget& target, RenderStates states) const
 {
 	for(unsigned i = 0; i < _powerups.size(); ++i)
 		target.draw(_powerups[i], states);
-}
+}

+ 18 - 1
src/Starlight.cpp

@@ -1,3 +1,20 @@
+/**
+ *  one room arena
+ *  Copyright (C) 2016 POSITIVE MENTAL ATTITUDE
+ *
+ *  This program is free software: you can redistribute it and/or modify
+ *  it under the terms of the GNU General Public License as published by
+ *  the Free Software Foundation, version 3 of the License.
+ *
+ *  This program is distributed in the hope that it will be useful,
+ *  but WITHOUT ANY WARRANTY; without even the implied warranty of
+ *  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
+ *  GNU General Public License for more details.
+ *
+ *  You should have received a copy of the GNU General Public License
+ *  along with this program.  If not, see <http://www.gnu.org/licenses/>.
+ */
+
 #include <cmath>
 #include <sstream>
 #include <Starlight.hpp>
@@ -192,4 +209,4 @@ void Starlight::toggleFrame(bool on, float delta)
 			transparency = 0.f;
 		_frame.setFillColor(Color(0, 0, 0, (int)transparency));
 	}
-}
+}

+ 19 - 1
src/main.cpp

@@ -1,3 +1,21 @@
+/**
+ *  one room arena
+ *  Copyright (C) 2016 POSITIVE MENTAL ATTITUDE
+ *
+ *  This program is free software: you can redistribute it and/or modify
+ *  it under the terms of the GNU General Public License as published by
+ *  the Free Software Foundation, version 3 of the License.
+ *
+ *  This program is distributed in the hope that it will be useful,
+ *  but WITHOUT ANY WARRANTY; without even the implied warranty of
+ *  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
+ *  GNU General Public License for more details.
+ *
+ *  You should have received a copy of the GNU General Public License
+ *  along with this program.  If not, see <http://www.gnu.org/licenses/>.
+ */
+
+
 #include <ctime>
 #include <iostream>
 #include <Starlight.hpp>
@@ -37,4 +55,4 @@ int main()
 		gaem.run();
 	} while(keepRunning);
 	return 0;
-}
+}