Changeset 2234 for 2011/26


Ignore:
Timestamp:
2011-06-28 14:51:39 (12 years ago)
Author:
teeevasa
Message:

Talletus.

Location:
2011/26/JaakkoL/Rogue Agent 2372/Rogue Agent 2372/Rogue Agent 2372
Files:
1 added
6 edited

Legend:

Unmodified
Added
Removed
  • 2011/26/JaakkoL/Rogue Agent 2372/Rogue Agent 2372/Rogue Agent 2372/Enemies.cs

    r2231 r2234  
    66using Jypeli.Widgets; 
    77 
    8 public class MeleeAlien 
     8public class MeleeAlien : GenEnemy 
    99{ 
    10         public MeleeAlien() 
     10        public MeleeAlien(double width, double height, Shape shape, int HP, string AI) 
     11        : base(width, height, shape, HP, AI) 
    1112        { 
     13 
    1214        } 
    1315} 
  • 2011/26/JaakkoL/Rogue Agent 2372/Rogue Agent 2372/Rogue Agent 2372/Enemy.cs

    r2231 r2234  
    1010    private string AItype 
    1111    { 
    12         get { return AItype; } 
    13         set { AItype = value; } 
     12        get; 
     13        set; 
    1414    } 
    1515 
     
    2525interface AI 
    2626{ 
    27     void move(); 
     27    //void move(); 
    2828} 
    2929 
    30 /* Implementation of the Patrol-AI 
     30/* Implementation of the "stupid" Patrol-AI 
    3131 *     The Patrol-AI just walks back and forth, waiting for the player to come into sight 
    3232 *     and then it attacks the player.*/ 
     
    3636} 
    3737 
    38 /* Implementation of the Murderer-AI 
    39  *     The Murder-AI, in contrast to the Patrol-AI, actively seeks the player.*/ 
    40 public class MurdererAI : AI 
     38/* Implementation of the Seeker-AI 
     39 *     The Seeker-AI, in contrast to the Seeker-AI, actively seeks the player.*/ 
     40public class SeekerAI : AI 
    4141{  
    4242 
  • 2011/26/JaakkoL/Rogue Agent 2372/Rogue Agent 2372/Rogue Agent 2372/GenCharacter.cs

    r2231 r2234  
    99{ 
    1010    // The amount of hit points the player/enemy has. Will be defined in their respective classes later on. 
    11     protected int hitPoints 
    12     { 
    13         get { return hitPoints; } 
    14         set { hitPoints = value; } 
    15     } 
     11    protected int hitPoints { get; set; } 
    1612 
    1713    // The maximum amount of hit points a player can have, which is currently defined as 100. 
  • 2011/26/JaakkoL/Rogue Agent 2372/Rogue Agent 2372/Rogue Agent 2372/Peli.cs

    r2231 r2234  
    2020        //lisaaNappaimet(); 
    2121 
    22         //Camera.Follow(pelaaja1); 
    23         //Camera.ZoomFactor = 1.2; 
    24         //Camera.StayInLevel = true; 
     22        Camera.Follow(player); 
     23        Camera.ZoomFactor = 1.2; 
     24        Camera.StayInLevel = true; 
    2525    } 
    2626 
     
    4343    MeleeAlien addMeleeAlien() 
    4444    { 
    45         MeleeAlien meleeAlien = new MeleeAlien(); 
     45        MeleeAlien meleeAlien = new MeleeAlien(SCREEN_WIDTH, SCREEN_HEIGTH, Shape.Rectangle, 10, "Patrol"); 
    4646        return meleeAlien; 
    4747    } 
  • 2011/26/JaakkoL/Rogue Agent 2372/Rogue Agent 2372/Rogue Agent 2372/Player.cs

    r2226 r2234  
    1616        { 
    1717        hitPoints = 100; 
    18         addControls(); 
     18        AddedToGame += addControls; 
    1919        } 
    2020 
     
    2626    } 
    2727 
    28     public void moveRight(int s) 
     28    public void moveRight(int speed) 
    2929    { 
    30         this.Walk(s); 
     30        this.Walk(speed); 
    3131    } 
    3232 
  • 2011/26/JaakkoL/Rogue Agent 2372/Rogue Agent 2372/Rogue Agent 2372/Rogue Agent 2372.csproj

    r2205 r2234  
    111111  </ItemGroup> 
    112112  <ItemGroup> 
     113    <Compile Include="Enemies.cs" /> 
    113114    <Compile Include="Enemy.cs" /> 
    114115    <Compile Include="GenCharacter.cs" /> 
     
    122123    <Content Include="GameThumbnail.png" /> 
    123124    <Content Include="kentta1.txt"> 
     125      <CopyToOutputDirectory>Always</CopyToOutputDirectory> 
     126    </Content> 
     127    <Content Include="ReactorEntrance.txt"> 
    124128      <CopyToOutputDirectory>Always</CopyToOutputDirectory> 
    125129    </Content> 
Note: See TracChangeset for help on using the changeset viewer.