[Work Report] Work Report of Framework Group [sumtec]

Source: Internet
Author: User
In the past two days, I am mainly busy with improving actions. The so-called perfection is just the most basic perfection. In addition, the main loop of the program is being designed. This main loop has been written, but it is still in a very early and very naive stage. What needs to be done next is:
1. Create an action Queue (used to execute actions)
2. Create a character queue for "breathing ")
3. Establish Input Capability
4. Establish an output Mechanism (UI)

The following is a separate description:
1. Create an action queue. I plan to use queue at the beginning. However, considering that this action queue has very complex functions, for example, an action may have to wait for some actions to be completed before execution can begin. For example, you can press the Shift key in the interstellar space to right-click the action, or you need to complete the move action first because the range is insufficient during the attack, or an action may be completed only when other actions are completed ......). For example, an action may have a higher priority, and another action may need to be scheduled (for example, a scheduled action in interstellar map editing ). Therefore, I plan to write this action queue from the beginning.

2. There is nothing to say about the character queue, but this is actually not a queue. It should be an array (arraylist or something else ). Of course, there may be some other requirements (similar to action) in the character queue, but I haven't thought of it yet, so I will not consider it for the moment.

3. Input Capability. Well, I have nothing to say about it. It is probably something similar to the shooting capability. May be completed in command mode? Is there any good suggestions?

4. Output Mechanism. I want to use flyweight to implement this, because for example, there may be only N types of roles, but the objects in the game may far exceed this n. For example, in Starcraft, I think each race has 100 different things. Should it be? However, if each of the eight players reaches the upper limit, hundreds of objects may exist. I have not yet figured out how to do it. I will try again after I have figured out it out. If you have any other ideas, you can also discuss them here, including the above points.

PS: the code is updated again. The update date is January 1, May 31.

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.