• R/O
  • SSH
  • HTTPS

nlgp1: Commit


Commit MetaInfo

Revision832 (tree)
Zeit2011-03-02 04:21:13
Autorbiikame

Log Message

Nlgp1.Charactersを修正

Ändern Zusammenfassung

Diff

--- trunk/Nlgp1/Nlgp1/Sprites/Sprite.cs (revision 831)
+++ trunk/Nlgp1/Nlgp1/Sprites/Sprite.cs (revision 832)
@@ -19,7 +19,6 @@
1919 /// <summary>
2020 /// 生存するスプライトをコレクションで取得します。
2121 /// </summary>
22- /// <returns></returns>
2322 public static IEnumerable<Sprite> GetCollection() {
2423 lock( objectList ) {
2524 int count = objectList.Count;
--- trunk/Nlgp1/Nlgp1/Attacks/IAttackOwner.cs (revision 831)
+++ trunk/Nlgp1/Nlgp1/Attacks/IAttackOwner.cs (revision 832)
@@ -1,4 +1,5 @@
11 using System;
2+using Nlgp1.Characters;
23 using Nlgp1.Sprites;
34
45 namespace Nlgp1.Attacks {
@@ -14,7 +15,7 @@
1415 /// <summary>
1516 /// オブジェクトを所有するスプライトを取得します。
1617 /// </summary>
17- ISpriteOwner SpriteOwner {
18+ Character Character {
1819 get;
1920 }
2021
--- trunk/Nlgp1/Nlgp1/Attacks/Shot.cs (revision 831)
+++ trunk/Nlgp1/Nlgp1/Attacks/Shot.cs (revision 832)
@@ -82,7 +82,7 @@
8282 void IAttackOwner.Start() {
8383 this.Attack.Start();
8484 }
85- ISpriteOwner IAttackOwner.SpriteOwner {
85+ Character IAttackOwner.Character {
8686 get {
8787 return character;
8888 }
--- trunk/Nlgp1/Nlgp1/Attacks/Guns/Gun.cs (revision 831)
+++ trunk/Nlgp1/Nlgp1/Attacks/Guns/Gun.cs (revision 832)
@@ -22,7 +22,7 @@
2222 }
2323
2424 /// <summary>
25- /// 弾を生成したIShotオブジェクトを取得します。
25+ /// 弾を生成したIAttackOwnerオブジェクトを取得します。
2626 /// </summary>
2727 public IAttackOwner Owner {
2828 get;
@@ -32,7 +32,7 @@
3232 #region IGun メンバー
3333 void IGun.Initialize( int typeID , IAttackOwner source , VectorI gunSize ) {
3434 this.Owner = source;
35- this.Sprite = new Sprite( LayerType.Character , typeID , source.SpriteOwner.Sprite.SpriteType , this , "GunImages" , gunSize , null , null , new Vector() );
35+ this.Sprite = new Sprite( LayerType.Character , typeID , source.Character.Sprite.SpriteType , this , "GunImages" , gunSize , null , null , new Vector() );
3636
3737
3838 }
Show on old repository browser