Daily update on 20221106 by nitload youmu
This commit is contained in:
BIN
Binary file not shown.
BIN
Binary file not shown.
BIN
Binary file not shown.
BIN
Binary file not shown.
BIN
Binary file not shown.
BIN
Binary file not shown.
Binary file not shown.
@@ -91,13 +91,12 @@ namespace StgSharp.Control
|
|||||||
PointCommon p = new PointCommon(beginX, beginY, angle,Pool.tickCounter);
|
PointCommon p = new PointCommon(beginX, beginY, angle,Pool.tickCounter);
|
||||||
p.XVelocity = x;
|
p.XVelocity = x;
|
||||||
p.YVelocity = y;
|
p.YVelocity = y;
|
||||||
Pool.pointPool.mainCotainer.Add(p);
|
Pool.pointContainer.Add(p);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
public static void Circle(IPoint c, float r)
|
public static void Circle(IPoint c, float r)
|
||||||
{
|
{
|
||||||
Pool.
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -24,17 +24,25 @@ namespace StgSharp.Control
|
|||||||
= new Collector(side.right,600);
|
= new Collector(side.right,600);
|
||||||
|
|
||||||
|
|
||||||
internal static IContainer entityContainer
|
internal static Counter<uint> entityCounter
|
||||||
= new EntityContainer(topCollector,bottomCollector,leftCollector,rightCollector) ;
|
=new Counter<uint>();
|
||||||
|
internal static LinkedList entityContainer
|
||||||
|
= new LinkedList(entityCounter);
|
||||||
|
|
||||||
internal static IContainer bulletContainer
|
internal static Counter<uint> bulletCounter
|
||||||
= new EntityContainer(topCollector, bottomCollector, leftCollector, rightCollector);
|
=new Counter<uint>();
|
||||||
|
internal static LinkedList bulletContainer
|
||||||
|
= new LinkedList(bulletCounter);
|
||||||
|
|
||||||
internal static IContainer geometryContainer
|
internal static Counter<uint> gemoetryCounter
|
||||||
= new GeometryContainer(topCollector, bottomCollector, leftCollector, rightCollector) ;
|
=new Counter<uint>();
|
||||||
|
internal static LinkedList geometryContainer
|
||||||
|
= new LinkedList(gemoetryCounter);
|
||||||
|
|
||||||
internal static IContainer pointContainer
|
internal static Counter<uint> pointCounter
|
||||||
= new PointContainer(topCollector, bottomCollector, leftCollector, rightCollector) ;
|
=new Counter<uint>();
|
||||||
|
internal static LinkedList pointContainer
|
||||||
|
= new LinkedList(pointCounter);
|
||||||
|
|
||||||
static Pool()
|
static Pool()
|
||||||
{
|
{
|
||||||
|
|||||||
@@ -10,7 +10,7 @@ namespace StgSharp.Entity
|
|||||||
{
|
{
|
||||||
public class Bullet : LinkedObject
|
public class Bullet : LinkedObject
|
||||||
{
|
{
|
||||||
private IPoint _location;
|
internal IPoint _location;
|
||||||
|
|
||||||
public IPoint Location
|
public IPoint Location
|
||||||
{
|
{
|
||||||
@@ -18,8 +18,8 @@ namespace StgSharp.Entity
|
|||||||
set { _location = value; }
|
set { _location = value; }
|
||||||
}
|
}
|
||||||
|
|
||||||
private float _x;
|
internal float _x;
|
||||||
private float _y;
|
internal float _y;
|
||||||
|
|
||||||
public float X
|
public float X
|
||||||
{
|
{
|
||||||
|
|||||||
@@ -11,6 +11,10 @@ namespace StgSharp.Game
|
|||||||
public static readonly string _coreSignature;
|
public static readonly string _coreSignature;
|
||||||
public static readonly string _coreName;
|
public static readonly string _coreName;
|
||||||
|
|
||||||
|
|
||||||
|
public static readonly uint _pointLimit = 2048 ;
|
||||||
|
public static readonly uint _geometryLimit = 512 ;
|
||||||
|
|
||||||
internal string CoreEdition
|
internal string CoreEdition
|
||||||
{
|
{
|
||||||
get { return _coreName; }
|
get { return _coreName; }
|
||||||
|
|||||||
@@ -16,6 +16,14 @@ namespace StgSharp.Logic
|
|||||||
set { _value = value; }
|
set { _value = value; }
|
||||||
}
|
}
|
||||||
|
|
||||||
|
private T _max;
|
||||||
|
|
||||||
|
public T Max
|
||||||
|
{
|
||||||
|
get { return _max; }
|
||||||
|
set { _max = value; }
|
||||||
|
}
|
||||||
|
|
||||||
public Counter()
|
public Counter()
|
||||||
{
|
{
|
||||||
|
|
||||||
@@ -23,12 +31,14 @@ namespace StgSharp.Logic
|
|||||||
|
|
||||||
public void Increase(T deltaValue)
|
public void Increase(T deltaValue)
|
||||||
{
|
{
|
||||||
|
|
||||||
//_value += deltaValue;
|
//_value += deltaValue;
|
||||||
}
|
}
|
||||||
|
|
||||||
public void Decrease(T deltaValue)
|
public void Decrease(T deltaValue)
|
||||||
{
|
{
|
||||||
//_value -= deltaValue;
|
//_value -= deltaValue;
|
||||||
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -35,10 +35,13 @@ namespace StgSharp.Logic
|
|||||||
set { _amountCounter = value; }
|
set { _amountCounter = value; }
|
||||||
}
|
}
|
||||||
|
|
||||||
//构造器
|
/// <summary>
|
||||||
public LinkedList()
|
/// 构造一个专用链表,并将计数器传入
|
||||||
|
/// </summary>
|
||||||
|
/// <param name="counter"></param>
|
||||||
|
public LinkedList(Counter<uint> counter)
|
||||||
{
|
{
|
||||||
this._amountCounter = new Counter<uint>();
|
_amountCounter = counter;
|
||||||
_amountCounter.Value = 0;
|
_amountCounter.Value = 0;
|
||||||
_heading = null;
|
_heading = null;
|
||||||
}
|
}
|
||||||
@@ -93,6 +96,8 @@ namespace StgSharp.Logic
|
|||||||
_amountCounter.Value--;
|
_amountCounter.Value--;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
/// <summary>
|
/// <summary>
|
||||||
/// 该方法用于防止传入不属于该链表的实例。
|
/// 该方法用于防止传入不属于该链表的实例。
|
||||||
/// </summary>
|
/// </summary>
|
||||||
|
|||||||
Reference in New Issue
Block a user