Sims project hex board




















This is the first "version" of the hex map, and by no means complete. Hexagon based games, whether traditional board games or computer-based, provide more strategic and tactical game-play when compared to simple square based games like the Checkers game board. The hexagon has six sides, which allows movement in six directions, instead of four. The distance from the center of a hexagon to the center of each neighboring hexagon is equal, which eliminates the distortion of calculating diagonal distance in a traditional square based map.

Hexagons are more pleasing to look at, which counts for something, right? The core of my code is based on the geometry of the hexagon. When I use the word hexagon , I really mean regular hexagon , which is a six-sided polygon where all six sides have the same length. The beauty of the hexagon based map is that you really only need to know one thing: the length of a side of a hexagon.

After that, you can calculate everything else you need to know. If you know the length of side s , then you can calculate r and h. The values for a and b are pretty much irrelevant because you can calculate them from s , r , and h , and you don't really need a and b for any calculations anyway.

So, how do you find r and h? For lack of a better term, I called my namespace Hexagonal , and that's where all my core classes live. The class Math has a bunch of static methods to handle geometric calculations.

Some people may argue that these are trigonometric calculations, but for my purposes, trigonometry is a subset of geometry. The Sin and Cos methods in System. Math take arguments in radians, not degrees. So, we need a helper method to convert degrees to radians. The Hex object represents a hexagon. When creating a Hex object, you need to know a few things - the length of a side, the x,y coordinates of the upper vertex, and the orientation of the hex. I introduced the concept of orientation so that hexes could be created with the flat side down or a pointy side down.

The orientation will affect how the vertices are calculated. The vertices are numbered somewhat arbitrarily on my part, but we need to refer to vertices in some manner. The important method in Hex is CalculateVertices , which is private and called by the constructor.

I also created an enumeration for hexagonal orientation. The Hex class was designed to be simple. All it does is remember its position in two dimensional space. The Board class is a collection of Hex objects that represent a game board. For this first version, the only type of board that can be created is rectangular. Arranging hexagons in a rectangular shape can be done fairly simply using a two dimensional array.

For example, a board with Flat orientation would map to a two dimensional array like this:. The most important method in the Board class is Initialize , which is private and called from the constructor. Initialize creates a two dimensional array of Hex objects with all the calculations for the hex vertices.

This method starts by creating a Hex at the array position 0,0. After a Hex object is created, every other Hex can be created because some vertex of a Hex is also the vertex of another Hex. So, you can loop through the two dimensional array from top to bottom, left to right, creating Hex es. The orientation will affect the calculations. I also created enumerations to give friendly names to the vertices.

November The project board is blue and only has the option to 'put in inventory' when selected. Never used. Same is happening to me. I also had the same issue with the homework but was able to work around it by getting rid of the homework book and buying a new one. November - last edited November LalaKatsuela KateJ I have a presentation board problem too, but not a vanishing one. Mine has just 'Put in Inventory' option, and when I looked at things closer, I understood why: the game gave my sim the wrong presentation board.

The board he has is for a class that has Final Exam as the top requirement, and the class that does have Presentation requirement doesn't have a board in his inventory. You can see what class the board is for by hovering your cursor over it, it's mentioned in the tooltip. Difficult or Divisive Discussions. So obviously there's no option to work on the board, since that class does not require a presentation. Joining the chorus wishing we could buy the boards from the kiosk, or email the professor to get a new one or something.

Later Edit: I continued playing the sim with the bugged presentation board and figured that since it says the presentation is a large part of the degree, instead of saying necessary or obligatory part of the degree, I'd just study harder otherwise. Made sure he was early to class with homework done, always took notes in class, and studied that subject from the text book a lot. So a simple workaround until the boards are fixed: study extra from the text book and make sure to do all the homework well and to take notes in class.

Help us improve Answers HQ! Take Survey No, Thanks. Sign In or Register. See details Show less. Turn on suggestions. Auto-suggest helps you quickly narrow down your search results by suggesting possible matches as you type. Showing results for. Search instead for. Do you mean. Zombies Plants vs. Zombies 2 Plants vs. Zombies Heroes Other Plants vs. Me too. Message 1 of 24 , Views. Accepted Solution. December - last edited December Term Presentations should not have missing interactions any longer.

Fixed in Patch 1. Please read these first for already reported issues: Compiled list of reported Issues Been asked for a save? Here's instructions: How to provide your save game Post 7. Message 24 of 24 97, Views.

All Replies. Discover University project board not working. Message 2 of 24 , Views. Re: Discover University project board not working. November Same is happening to me.



0コメント

  • 1000 / 1000