{"id":604,"date":"2011-07-08T11:01:34","date_gmt":"2011-07-08T14:01:34","guid":{"rendered":"http:\/\/rockbot.upperland.net\/?p=604"},"modified":"2011-07-08T11:01:34","modified_gmt":"2011-07-08T14:01:34","slug":"c-is-fun-but-sometimes-is-not","status":"publish","type":"post","link":"https:\/\/rockbot.upperland.net\/?p=604","title":{"rendered":"C++ is fun, but sometimes, is not"},"content":{"rendered":"<p>As vezes o C++ cria alguns problemas chatos. A id\u00e9ia de uma linguagem com orienta\u00e7\u00e3o a objetos \u00e9 que cade pe\u00e7ado (classe\/objeto) \u00e9 uma entidade independente, mas que pode conter outras entidades. O problema come\u00e7a quando voc\u00ea tem dois tipos de entidades diferentes, como NPCs e Players,q eu tem que fazer c\u00e1lculos levando em conta a outra entidade, que ela no conhece. No caso do Rockbot, a classe game, possui duas listas, uma de players e outra de npcs, e cada uma destas, cont\u00e9m uma lista de proj\u00e9teis, o problema \u00e9 que cada elemento da lista precisa acessar a lista do outro tipo de elemento, para fazer verifica\u00e7\u00f5es de colis\u00e3o e proximidade. Vou ter que pensar muito bem em uma solu\u00e7\u00e3o.<\/p>\n<p>&nbsp;<\/p>\n","protected":false},"excerpt":{"rendered":"<p>As vezes o C++ cria alguns problemas chatos. A id\u00e9ia de uma linguagem com orienta\u00e7\u00e3o a objetos \u00e9 que cade pe\u00e7ado (classe\/objeto) \u00e9 uma entidade independente, mas que pode conter outras entidades. O problema come\u00e7a [&hellip;]<\/p>\n","protected":false},"author":2,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[8],"tags":[],"class_list":["post-604","post","type-post","status-publish","format-standard","hentry","category-rockbot"],"_links":{"self":[{"href":"https:\/\/rockbot.upperland.net\/index.php?rest_route=\/wp\/v2\/posts\/604","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/rockbot.upperland.net\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/rockbot.upperland.net\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/rockbot.upperland.net\/index.php?rest_route=\/wp\/v2\/users\/2"}],"replies":[{"embeddable":true,"href":"https:\/\/rockbot.upperland.net\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=604"}],"version-history":[{"count":2,"href":"https:\/\/rockbot.upperland.net\/index.php?rest_route=\/wp\/v2\/posts\/604\/revisions"}],"predecessor-version":[{"id":606,"href":"https:\/\/rockbot.upperland.net\/index.php?rest_route=\/wp\/v2\/posts\/604\/revisions\/606"}],"wp:attachment":[{"href":"https:\/\/rockbot.upperland.net\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=604"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/rockbot.upperland.net\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=604"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/rockbot.upperland.net\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=604"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}