C# 클래스 Terrarium.Game.GridIndex.SegmentWrapper

The segment wrapper allows us to put the same exact segment in several different cells of the grid. We do this because an animal occupies many cells at once and needs to either occupy them all, or none of them. Thus, we wrap the segment in a segment wrapper and stick the wrapper into the cell to represent the fact that this segment is in that cell. We give the SegmentWrapper a backpointer to the arraylist of other SegmentWrappers that are in the cell as well
파일 보기 프로젝트 열기: eugeniomiro/Terrarium

공개 메소드들

메소드 설명
SegmentWrapper ( MovementSegment segment, ArrayList parentList ) : System

메소드 상세

SegmentWrapper() 공개 메소드

public SegmentWrapper ( MovementSegment segment, ArrayList parentList ) : System
segment MovementSegment
parentList System.Collections.ArrayList
리턴 System