Important changes to repositories hosted on mbed.com
Mbed hosted mercurial repositories are deprecated and are due to be permanently deleted in July 2026.
To keep a copy of this software download the repository Zip archive or clone locally using Mercurial.
It is also possible to export all your personal repositories from the account settings page.
Sprite.cpp
00001 #include "Sprite.h" 00002 ///////////////////////////////////////////////////////////////////////// 00003 ///////////////////////////////////////////////////////////////////////// 00004 ///////////////////////////////////////////////////////////////////////// 00005 // Default Constructor 00006 Sprite::Sprite(): 00007 m_CurrentDirection(NO_DIR), 00008 m_DesiredDirection(NO_DIR), 00009 m_RowPos(0), 00010 m_ColPos(0), 00011 m_nActiveImage(0) 00012 { 00013 00014 } 00015 ///////////////////////////////////////////////////////////////////////// 00016 ///////////////////////////////////////////////////////////////////////// 00017 ///////////////////////////////////////////////////////////////////////// 00018 // Constructor 00019 Sprite::Sprite(enDIRECTIONS inDir, unsigned int inRow, unsigned int inCol): 00020 m_CurrentDirection(inDir), 00021 m_DesiredDirection(inDir), 00022 m_RowPos(inRow), 00023 m_ColPos(inCol), 00024 m_nActiveImage(0) 00025 { 00026 00027 } 00028 ///////////////////////////////////////////////////////////////////////// 00029 ///////////////////////////////////////////////////////////////////////// 00030 ///////////////////////////////////////////////////////////////////////// 00031 // SetDesiredDirectionToMove 00032 void Sprite::SetDesiredDirectionToMove(enDIRECTIONS dir) 00033 { 00034 m_DesiredDirection = dir; 00035 }
Generated on Wed Jul 13 2022 01:21:56 by
1.7.2