一个很好的决定问题 [英] A problem of great decision

查看:62
本文介绍了一个很好的决定问题的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

这个问题我有一段时间,差不多1年或更长时间。我尝试了不同的排列,但总是陷入困境,当整个想法不再适用时。我一直放弃它。



我有一个包含属性,字段和方法的类。我正在考虑为它添加事件,但我还没那么好。当我把这个类称为form1时,我基本上改变了类中的一些值,而代表它的对象将增加值或改变颜色或改变位置等。



如果我有一个游戏让我们说,当角色停留并且我希望他看起来像是呼吸时,这个属性应该在课堂内吗?或者在外面,让我选择何时呼吸,多少,多久,多快等等。这只是一个例子。我有很多类似的(也是更复杂的)与这个主题相遇,我只是在它的中间冻结,不知道如何管理它。

两种方式都很好!从外面或从课堂内部。但是......有时候我需要机动性,有时候只是挡路而且我希望它在一些关门之后在那里(在课堂内我的意思)。



你的规则对这件事情有什么看法?我应该从课堂内改变它的价值吗?还是从外面?

谢谢。



我的尝试:



制作这个你试过什么? textfield,可选!并非一切都是直接的试验和错误,而是一种经验和许多失败,这些都不能像你(网站)所期望的那样方便。我没有批评任何事情,我只是在桌子上放了一个选项。考虑与否,没有人关心,但你现在在桌面上有一些东西。

This issue I have it for a while, almost 1 year or more. I tried diverse permutations but always got stuck at some point, when the whole idea will not work anymore. And I give up all the time on it.

I have a class with properties, fields and methods in it. I am thinking to add events to it, but im not that great at them yet. When i call this class into form1 I basically change some values inside class, and the "object" that represents it, will add value or change color or change position ,etc.

If i have a game let's say, when the character stays and I want him to look like it's breathing, this property should be inside the class? or outside, letting me choose when to breathe, how much, how long, how fast,etc. It's just an example. I had a lot of similar (and more complex) encounters with this subject and I simply freeze in the middle of it, not knowing how to manage it anymore.
Both ways are good! From outside or from inside class. But... sometime i need maneuverability, sometime is just in the way and i want it 'there' behind some close door(inside class I mean).

What your rules say about this thing? Should I change its values from inside the class? Or from outside?
Thank you.

What I have tried:

Make this "What have you tried?" textfield, optional ! Not everything is having a direct trial and error but an experience and many failures which can not be put that convenient into words as you(the website) expect. Im not criticizing anything, i just put an option on the table. Consider it or not, nobody cares, but you have something on the table for now.

推荐答案

这不是真正的QA问题 - 没有特定的正确答案,甚至是一类正确的答案 - 我认为在讨论论坛上可能会更好。



我可以建议你发布吗这里:

C#讨论区 [ ^ ]

或者这里:

设计和架构讨论区 [ ^ ](虽然这个论坛获得的流量要少得多,所以对你在短期内)。
This isn't really a QA question - there isn't a specific "right answer", or even a class of "right answers" - and I think it would probably be better in a discussion forum.

Can I suggest you post it here:
C# Discussion Boards[^]
Or here:
Design and Architecture Discussion Boards[^] (though this forum gets a lot less traffic so probably is less use to you in the short term).


这个CodeProject文章看起来承诺:游戏开发承诺 [ ^ ]
This CodeProject article looks promising: Promises for Game Development[^]


这篇关于一个很好的决定问题的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆