コード例 #1
0
ファイル: Player.cs プロジェクト: nicolas-repiquet/Granite
 public Player()
 {
     m_location = new LocationComponent(this);
     m_locationNext = new LocationComponent(this);
     m_locationFinal = new LocationComponent(this);
     m_locationMoving = new LocationComponent(this);
     Intersections = new List<Tuple<Vector2, int, double>>();
     MovingPercent = 100f;
     MovingDuration = 5.0;
 }
コード例 #2
0
 public PlayerDestination()
 {
     m_location = new LocationComponent(this);
     m_rigidBody = new RigidBodyComponent(this, m_location);
 }
コード例 #3
0
 public RigidBodyComponent(Entity entity, LocationComponent location)
     : base(entity)
 {
     m_location = location;
     Velocity = new Vector2(0, 0);
 }
コード例 #4
0
 public RestrictLocationComponent(Entity entity, LocationComponent location)
     : base(entity)
 {
     m_location = location;
 }
コード例 #5
0
ファイル: Camera.cs プロジェクト: nicolas-repiquet/Granite
 public Camera()
 {
     m_location = new LocationComponent(this);
     m_target = new FollowTargetComponent(this, m_location);
     m_restrictPosition = new RestrictLocationComponent(this, m_location);
 }
コード例 #6
0
 public FollowTargetComponent(Entity entity, LocationComponent location)
     : base(entity)
 {
     m_location = location;
 }