Page Menu
Home
Phabricator (Chris)
Search
Configure Global Search
Log In
Files
F628126
GameObjects.cpp
No One
Temporary
Actions
Download File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Flag For Later
Award Token
Authored By
Unknown
Size
2 KB
Referenced Files
None
Subscribers
None
GameObjects.cpp
View Options
/*
* Copyright (C) 2011-2012 Me and My Shadow
*
* This file is part of Me and My Shadow.
*
* Me and My Shadow 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, either version 3 of the License, or
* (at your option) any later version.
*
* Me and My Shadow 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 Me and My Shadow. If not, see <http://www.gnu.org/licenses/>.
*/
#include
"GameObjects.h"
#include
"Functions.h"
#include
"Globals.h"
#include
"Player.h"
GameObject
::
GameObject
(
Game
*
parent
)
:
type
(
0
),
parent
(
parent
){}
GameObject
::~
GameObject
(){}
SDL_Rect
GameObject
::
getBox
(
int
boxType
){
//This is the default implementation of getBox(int) method.
switch
(
boxType
){
case
BoxType_Current
:
case
BoxType_Previous
:
return
box
;
case
BoxType_Base
:
return
boxBase
;
}
//Return an empty SDL_Rect.
SDL_Rect
tmp
=
{
0
,
0
,
0
,
0
};
return
tmp
;
}
void
GameObject
::
setLocation
(
int
x
,
int
y
){
box
.
x
=
x
;
box
.
y
=
y
;
}
void
GameObject
::
setBaseLocation
(
int
x
,
int
y
){
box
.
x
=
x
;
box
.
y
=
y
;
boxBase
.
x
=
x
;
boxBase
.
y
=
y
;
}
void
GameObject
::
saveState
(){}
void
GameObject
::
loadState
(){}
void
GameObject
::
reset
(
bool
save
){}
void
GameObject
::
playAnimation
(
int
flags
){}
void
GameObject
::
onEvent
(
int
eventType
){}
int
GameObject
::
queryProperties
(
int
propertyType
,
Player
*
obj
){
return
0
;
}
void
GameObject
::
getEditorData
(
std
::
vector
<
std
::
pair
<
std
::
string
,
std
::
string
>
>&
obj
){}
void
GameObject
::
setEditorData
(
std
::
map
<
std
::
string
,
std
::
string
>&
obj
){}
std
::
string
GameObject
::
getEditorProperty
(
std
::
string
property
){
return
""
;}
void
GameObject
::
setEditorProperty
(
std
::
string
property
,
std
::
string
value
){}
void
GameObject
::
prepareFrame
(){}
void
GameObject
::
move
(){}
File Metadata
Details
Attached
Mime Type
text/x-c
Expires
Sun, Nov 15, 3:17 AM (1 d, 21 h)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
125745
Default Alt Text
GameObjects.cpp (2 KB)
Attached To
Mode
R79 meandmyshadow
Attached
Detach File
Event Timeline