Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

added header guards #17

Open
wants to merge 2 commits into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 5 additions & 0 deletions Boss.h
Original file line number Diff line number Diff line change
@@ -1,3 +1,6 @@
#ifndef TWANG_BOSS_H
#define TWANG_BOSS_H

#include "Arduino.h"

class Boss
Expand Down Expand Up @@ -40,3 +43,5 @@ bool Boss::Alive(){
void Boss::Kill(){
_alive = 0;
}

#endif
5 changes: 5 additions & 0 deletions Conveyor.h
Original file line number Diff line number Diff line change
@@ -1,3 +1,6 @@
#ifndef TWANG_CONVEYOR_H
#define TWANG_CONVEYOR_H

#include "Arduino.h"

class Conveyor
Expand All @@ -21,3 +24,5 @@ void Conveyor::Spawn(int startPoint, int endPoint, int dir){
void Conveyor::Kill(){
_alive = false;
}

#endif
5 changes: 5 additions & 0 deletions Enemy.h
Original file line number Diff line number Diff line change
@@ -1,3 +1,6 @@
#ifndef TWANG_ENEMY_H
#define TWANG_ENEMY_H

#include "Arduino.h"

class Enemy
Expand Down Expand Up @@ -53,3 +56,5 @@ bool Enemy::Alive(){
void Enemy::Kill(){
_alive = 0;
}

#endif
5 changes: 5 additions & 0 deletions Lava.h
Original file line number Diff line number Diff line change
@@ -1,3 +1,6 @@
#ifndef TWANG_LAVA_H
#define TWANG_LAVA_H

#include "Arduino.h"

class Lava
Expand Down Expand Up @@ -35,3 +38,5 @@ void Lava::Kill(){
int Lava::Alive(){
return _alive;
}

#endif
5 changes: 5 additions & 0 deletions Particle.h
Original file line number Diff line number Diff line change
@@ -1,3 +1,6 @@
#ifndef TWANG_PARTICLE_H
#define TWANG_PARTICLE_H

#include "Arduino.h"
#define FRICTION 1

Expand Down Expand Up @@ -57,3 +60,5 @@ bool Particle::Alive(){
void Particle::Kill(){
_alive = 0;
}

#endif
5 changes: 5 additions & 0 deletions Spawner.h
Original file line number Diff line number Diff line change
@@ -1,3 +1,6 @@
#ifndef TWANG_SPAWNER_H
#define TWANG_SPAWNER_H

#include "Arduino.h"

class Spawner
Expand Down Expand Up @@ -33,3 +36,5 @@ void Spawner::Kill(){
int Spawner::Alive(){
return _alive;
}

#endif
File renamed without changes.
5 changes: 5 additions & 0 deletions iSin.h
Original file line number Diff line number Diff line change
@@ -1,3 +1,6 @@
#ifndef TWANG_ISIN_H
#define TWANG_ISIN_H

#include "Arduino.h"

class iSin
Expand Down Expand Up @@ -36,3 +39,5 @@ int iSin::convert(long x)
if (pos) return isinTable8[x]/2 ;
return -isinTable8[x]/2 ;
}

#endif