summaryrefslogtreecommitdiff
path: root/src/Frame.cpp
diff options
context:
space:
mode:
authortom <tom@ground-control>2015-11-21 12:30:13 -0600
committertom <tom@ground-control>2015-11-21 12:30:13 -0600
commit7f79b2e216617ff74ebd41ac02663b20ef3d0904 (patch)
treee0eb8f820c61c45afcb1506f5b025eeb7e534691 /src/Frame.cpp
parent032d4f98c809bde6231ff78ba50e8c244334739f (diff)
began adding collision *added a location class for ease *much refractoring needed to fully implement it*
Diffstat (limited to 'src/Frame.cpp')
-rw-r--r--src/Frame.cpp12
1 files changed, 6 insertions, 6 deletions
diff --git a/src/Frame.cpp b/src/Frame.cpp
index 4a0df5d..77c7063 100644
--- a/src/Frame.cpp
+++ b/src/Frame.cpp
@@ -44,17 +44,17 @@ Frame::~Frame()
{
delwin(w);
}
-
+/*
void Frame::add(Character &c)
{
mvwaddch(w,c.getRow(),c.getCol(),c.getSymbol());
}
-
+*/
void Frame::erase(Character &c)
{
mvwaddch(w,c.getRow(),c.getCol(),' ');
}
-
+/*
void Frame::add(Character &c, int nRow, int nCol)
{
if((nRow >= 0 && nRow < height) && (nCol >= 0 && nCol < width))
@@ -64,7 +64,7 @@ void Frame::add(Character &c, int nRow, int nCol)
c.move(nRow,nCol);
}
}
-
+*/
void Frame::center(Character &ch)
{
if(hasSuper)
@@ -72,8 +72,8 @@ void Frame::center(Character &ch)
int rr = row;
int cc = col;
int hh, ww;
- int r = ch.getRow() - height/2;
- int c = ch.getCol() - width/2;
+ int r = ch.getLocation().x - height/2;
+ int c = ch.getLocation().y - width/2;
getmaxyx(super, hh, ww);