SDXFrameWork
0.13
SDXFrameWork
Main Page
Related Pages
Classes
All
Classes
Namespaces
Functions
Variables
Enumerations
Enumerator
Pages
Framework
Model.h
1
//Copyright © 2014 SDXFramework
2
//[License]GNU Affero General Public License, version 3
3
//[Contact]http://sourceforge.jp/projects/dxframework/
4
#pragma once
5
#include<Framework/IModel.h>
6
namespace
SDX
7
{
10
template
<
class
TShape,
class
TSprite>
11
class
Model
:
public
IModel
12
{
13
public
:
14
TShape
shape
;
15
TSprite
sprite
;
16
18
Model
(
const
TShape &
shape
,
const
TSprite &
sprite
) :
19
shape(shape),
20
sprite(sprite)
21
{}
22
23
const
IShape
& GetShape()
const
{
return
shape
; }
24
const
ISprite& GetSprite()
const
{
return
sprite
; }
25
26
};
27
}
SDX::Model
Modelの基本クラス.
Definition:
Model.h:11
SDX::Model::shape
TShape shape
対応Shape
Definition:
Model.h:14
SDX::Model::Model
Model(const TShape &shape, const TSprite &sprite)
コンストラクタ.
Definition:
Model.h:18
SDX::Model::sprite
TSprite sprite
対応Sprite
Definition:
Model.h:15
SDX::IShape
衝突判定可能な図形の抽象クラス.
Definition:
IShape.h:21
SDX::IModel
ShapeとSpriteをまとめて、2Dモデルを表すクラス.
Definition:
IModel.h:13
Generated on Sun Jun 28 2015 09:15:35 for SDXFrameWork by
1.8.7