Java: Resizable Arraylists are won‘t stay parallel

题意:Java:可调整大小的 ArrayList 不会保持平行。

问题背景:

I have a situation where my 'agent' objects contain a vast amount of data, including graphics, physics, and now also ai.

我遇到了一个情况,我的 'agent' 对象包含大量数据,包括图形、物理和现在的 AI。

I was previously coding components of these 'agents' in separate objects, that were parallel. Now I realize, since the agents are contained in a re-sizable ArrayList, that if one of the agents is destroyed, the indices will no longer be parallel to the ai components.

我之前将这些 'agents' 的组件编码为独立的并行对象。现在我意识到,由于这些 agents 被包含在一个可调整大小的 ArrayList 中,如果其中一个 agent 被销毁,索引将不再与 AI 组件平行。

Truth be told, the agent c

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包

打赏作者

营赢盈英

你的鼓励将是我创作的最大动力

¥1 ¥2 ¥4 ¥6 ¥10 ¥20
扫码支付:¥1
获取中
扫码支付

您的余额不足,请更换扫码支付或充值

打赏作者

实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值