Ignore:
Timestamp:
2013-09-01 18:40:38 (6 years ago)
Author:
dezhidki
Message:
  • Lisätty kunnon ohjeet.
  • Ctrl + RMouse toimii nyt kunnolla (voi valita monta kerrallaan).
File:
1 edited

Legend:

Unmodified
Added
Removed
  • 2013/30/DenisZ/CastleMaster/CastleMaster/CastleMaster/World/Level.cs

    r4694 r4753  
    338338        } 
    339339 
     340        public List<T> GetUnitsWithinScreenSpace<T>(BoundingRectangle rect, Team team) where T : Unit 
     341        { 
     342            List<T> result = new List<T>(); 
     343 
     344            foreach (Unit u in units[team.ID]) 
     345            { 
     346                T unit = u as T; 
     347                if (unit != null && unit.IsSelectable && unit.IntersectsWithScreenSpace(rect.XLeft, rect.ZFar, rect.XRight, rect.ZNear)) 
     348                    result.Add(unit); 
     349            } 
     350 
     351            return result; 
     352        } 
     353 
    340354        public List<BoundingRectangle> GetCollidables(Entity ent, BoundingRectangle br = null) 
    341355        { 
Note: See TracChangeset for help on using the changeset viewer.