Simple starter skeleton for asteroids video game.

Dependencies:   PinDetect

Committer:
jhurley31
Date:
Sat Mar 02 16:11:43 2019 +0000
Revision:
2:30020ddfccf6
Child:
3:98aa3db6a48f
There is an issue with inheritance

Who changed what in which revision?

UserRevisionLine numberNew contents of line
jhurley31 2:30020ddfccf6 1 #include "Sprite.h"
jhurley31 2:30020ddfccf6 2
jhurley31 2:30020ddfccf6 3 // Default Constructor
jhurley31 2:30020ddfccf6 4 Sprite::Sprite():
jhurley31 2:30020ddfccf6 5 m_CurrentDirection(NO_DIR),
jhurley31 2:30020ddfccf6 6 m_DesiredDirection(NO_DIR),
jhurley31 2:30020ddfccf6 7 m_RowPos(0),
jhurley31 2:30020ddfccf6 8 m_ColPos(0)
jhurley31 2:30020ddfccf6 9 {}
jhurley31 2:30020ddfccf6 10 // Constructor
jhurley31 2:30020ddfccf6 11 Sprite::Sprite(enDIRECTIONS inDir, unsigned int inRow, unsigned int inCol):
jhurley31 2:30020ddfccf6 12 m_CurrentDirection(inDir),
jhurley31 2:30020ddfccf6 13 m_DesiredDirection(inDir),
jhurley31 2:30020ddfccf6 14 m_RowPos(inRow),
jhurley31 2:30020ddfccf6 15 m_ColPos(inCol)
jhurley31 2:30020ddfccf6 16 {
jhurley31 2:30020ddfccf6 17
jhurley31 2:30020ddfccf6 18 }
jhurley31 2:30020ddfccf6 19 // SetDesiredDirectionToMove
jhurley31 2:30020ddfccf6 20 void Sprite::SetDesiredDirectionToMove(enDIRECTIONS dir)
jhurley31 2:30020ddfccf6 21 {
jhurley31 2:30020ddfccf6 22 m_DesiredDirection = dir;
jhurley31 2:30020ddfccf6 23 }