SDXFrameWork  0.13
SDXFrameWork
 All Classes Namespaces Functions Variables Enumerations Enumerator Pages
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 }
Modelの基本クラス.
Definition: Model.h:11
TShape shape
対応Shape
Definition: Model.h:14
Model(const TShape &shape, const TSprite &sprite)
コンストラクタ.
Definition: Model.h:18
TSprite sprite
対応Sprite
Definition: Model.h:15
衝突判定可能な図形の抽象クラス.
Definition: IShape.h:21
ShapeとSpriteをまとめて、2Dモデルを表すクラス.
Definition: IModel.h:13